From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (from majordomo@localhost) by pauillac.inria.fr (8.7.6/8.7.3) id AAA18129; Tue, 18 Feb 2003 00:00:25 +0100 (MET) X-Authentication-Warning: pauillac.inria.fr: majordomo set sender to owner-caml-list@pauillac.inria.fr using -f Received: from nez-perce.inria.fr (nez-perce.inria.fr [192.93.2.78]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id AAA18057 for ; Tue, 18 Feb 2003 00:00:25 +0100 (MET) Received: from smtp-send.myrealbox.com (smtp-send.myrealbox.com [192.108.102.143]) by nez-perce.inria.fr (8.11.1/8.11.1) with ESMTP id h1HN0NP03699 for ; Tue, 18 Feb 2003 00:00:24 +0100 (MET) Received: from tw304h3 oleg_inconnu@smtp-send.myrealbox.com [156.111.84.180] by smtp-send.myrealbox.com with NetMail SMTP Agent $Revision: 3.28 $ on Novell NetWare via secured & encrypted transport (TLS); Mon, 17 Feb 2003 16:00:21 -0700 Content-Type: text/plain; charset="iso-8859-1" From: Oleg To: Alessandro Baretta , ocaml Subject: Re: [Caml-list] streams syntax Date: Mon, 17 Feb 2003 17:58:49 -0500 User-Agent: KMail/1.4.3 References: <200302171737.14156.oleg_inconnu@myrealbox.com> <3E5168C0.6050004@baretta.com> In-Reply-To: <3E5168C0.6050004@baretta.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Message-Id: <200302171758.49590.oleg_inconnu@myrealbox.com> Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk On Monday 17 February 2003 05:57 pm, Alessandro Baretta wrote: > Oleg wrote: > > Hi > > > > Is the [< ... >] syntax for streams deprecated? No one seems to have = told > > me... > > > > $ ocaml > > Objective Caml version 3.06 > > > > # [< '1; '2 >];; > > Syntax error > > > > > > Oleg > > Look into the CamlP4 manual. You'll find them there. > > Here's an example. > > [alex@athlon alex]$ ledit ocaml > Objective Caml version 3.06 > > # #load "camlp4o.cma";; > =09Camlp4 Parsing version 3.06 > > # [< '1 >];; > - : int Stream.t =3D Thanks, this works. O'Reilly book doesn't mention that Camlp4 is needed f= or=20 this. Oleg ------------------- 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