Mailing list for all users of the OCaml language and system.
 help / color / mirror / Atom feed
From: Ville-Pertti Keinonen <will@exomi.com>
To: skaller@users.sourceforge.net
Cc: caml-list@pauillac.inria.fr, briand@aracnet.com
Subject: Re: Baffeld by manual (Was: [Caml-list] baffled by semicolon)
Date: Mon, 30 Aug 2004 11:25:43 +0300	[thread overview]
Message-ID: <4132E487.2090606@exomi.com> (raw)
In-Reply-To: <1093853217.9955.44.camel@pelican.wigram>

skaller wrote:

>The single ; is (usually) left associative binary sequencing
>operator of type unit that takes two expressions of 
>type unit as an argument:
>
>	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

-------------------
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


  parent reply	other threads:[~2004-08-30  8:25 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 [this message]
2004-08-30 11:07       ` skaller

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=4132E487.2090606@exomi.com \
    --to=will@exomi.com \
    --cc=briand@aracnet.com \
    --cc=caml-list@pauillac.inria.fr \
    --cc=skaller@users.sourceforge.net \
    /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