From: skaller <skaller@users.sourceforge.net>
To: Ville-Pertti Keinonen <will@exomi.com>
Cc: caml-list@pauillac.inria.fr, briand@aracnet.com
Subject: Re: Baffeld by manual (Was: [Caml-list] baffled by semicolon)
Date: 30 Aug 2004 21:07:21 +1000 [thread overview]
Message-ID: <1093864039.9955.46.camel@pelican.wigram> (raw)
In-Reply-To: <4132E487.2090606@exomi.com>
On Mon, 2004-08-30 at 18:25, Ville-Pertti Keinonen wrote:
> skaller wrote:
> > e1 ; e2
> >
> >evaluates e1, then e2 (for side effects).
> >
> >
> e1 is evaluated for side-effects, the value of e2 is the value of the
> entire expression, it does not need to be of type unit.
>
> You could think of ; as having the type unit -> 'a -> 'a
Yup, that's more correct -- sry for prior inaccuracy.
--
John Skaller, mailto:skaller@users.sf.net
voice: 061-2-9660-0850,
snail: PO BOX 401 Glebe NSW 2037 Australia
Checkout the Felix programming language http://felix.sf.net
-------------------
To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr
Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/
Beginner's list: http://groups.yahoo.com/group/ocaml_beginners
prev parent reply other threads:[~2004-08-30 11:07 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-08-26 3:22 [Caml-list] baffled by semicolon briand
2004-08-26 3:30 ` David Brown
2004-08-26 4:18 ` Alex Valdez
2004-08-26 5:05 ` briand
2004-08-29 4:45 ` William Lovas
2004-08-30 7:12 ` Baffeld by manual (Was: [Caml-list] baffled by semicolon) Florian Hars
2004-08-30 8:06 ` skaller
2004-08-30 8:23 ` Radu Grigore
2004-08-30 8:25 ` Ville-Pertti Keinonen
2004-08-30 11:07 ` skaller [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1093864039.9955.46.camel@pelican.wigram \
--to=skaller@users.sourceforge.net \
--cc=briand@aracnet.com \
--cc=caml-list@pauillac.inria.fr \
--cc=will@exomi.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).