Version française
Home     About     Download     Resources     Contact us    
Browse thread
[Caml-list] streams syntax
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Oleg <oleg_inconnu@m...>
Subject: Re: [Caml-list] streams syntax
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";;
> 	Camlp4 Parsing version 3.06
>
> #  [< '1 >];;
> - : int Stream.t = <abstr>

Thanks, this works. O'Reilly book doesn't mention that Camlp4 is needed for 
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