From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.1.3 (2006-06-01) on yquem.inria.fr X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=none autolearn=disabled version=3.1.3 Received: from discorde.inria.fr (discorde.inria.fr [192.93.2.38]) by yquem.inria.fr (Postfix) with ESMTP id C5525BC6C for ; Tue, 31 Jul 2007 19:02:39 +0200 (CEST) Received: from smtp4-g19.free.fr (smtp4-g19.free.fr [212.27.42.30]) by discorde.inria.fr (8.13.6/8.13.6) with ESMTP id l6VH2dRK018104 for ; Tue, 31 Jul 2007 19:02:39 +0200 Received: from smtp4-g19.free.fr (localhost.localdomain [127.0.0.1]) by smtp4-g19.free.fr (Postfix) with ESMTP id 632C66F374 for ; Tue, 31 Jul 2007 19:02:39 +0200 (CEST) Received: from kerneis.info (kerneis.info [82.224.215.18]) by smtp4-g19.free.fr (Postfix) with ESMTP id 44D656F2EC for ; Tue, 31 Jul 2007 19:02:39 +0200 (CEST) Received: from localhost ([127.0.0.1] helo=tatanka.kerneis.info ident=gabriel) by kerneis.info with esmtp (Exim 4.63) (envelope-from ) id 1IFv7G-00047E-0W for caml-list@yquem.inria.fr; Tue, 31 Jul 2007 19:02:38 +0200 Date: Tue, 31 Jul 2007 19:02:34 +0200 From: Gabriel Kerneis To: caml-list@yquem.inria.fr Subject: Re: [Caml-list] [Camlp4][trivial ?] Anonymous bind (for monads) In-Reply-To: References: Organization: ENST X-Mailer: Claws Mail 2.10.0 (GTK+ 2.10.13; i486-pc-linux-gnu) Mime-Version: 1.0 Content-Type: multipart/signed; boundary="Sig_9mCQgX7iLLWQW/10Y.AyQaB"; protocol="application/pgp-signature"; micalg=PGP-SHA1 Message-Id: X-Miltered: at discorde with ID 46AF6B2F.000 by Joe's j-chkmail (http://j-chkmail . ensmp . fr)! X-Spam: no; 0.00; camlp:01 trivial:01 monads:01 0200,:01 ocaml:01 camlp:01 foo:01 endline:01 foo:01 endline:01 unix:01 unix:01 caml-list:01 let:03 let:03 X-Attachments: type="application/pgp-signature" name="signature.asc" name="signature.asc" --Sig_9mCQgX7iLLWQW/10Y.AyQaB Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Le Tue, 31 Jul 2007 18:55:05 +0200, Gabriel Kerneis a =E9crit : > ~/ocaml/camlp4% cat test_bind.ml=20 > let r =3D (Lwt_unix.sleep 5) foo (print_endline "42") Careful readers will notice that I should have had written:=20 let r =3D (Lwt_unix.sleep 5) foo (Lwt.return (print_endline "42")) But it doesn't change anything, of course. --=20 Gabriel --Sig_9mCQgX7iLLWQW/10Y.AyQaB Content-Type: application/pgp-signature; name=signature.asc Content-Disposition: attachment; filename=signature.asc -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux) iD8DBQFGr2sq6a2JmXQu5bYRAtW4AKCuylikvC0gyJlw+cLVl2iAF9skcQCghotr gxNB2bHdN/j6uja2r/7qUYE= =JIFX -----END PGP SIGNATURE----- --Sig_9mCQgX7iLLWQW/10Y.AyQaB--