* [Caml-list] streams syntax
@ 2003-02-17 22:37 Oleg
2003-02-17 22:57 ` Alessandro Baretta
2003-02-17 23:13 ` Issac Trotts
0 siblings, 2 replies; 4+ messages in thread
From: Oleg @ 2003-02-17 22:37 UTC (permalink / raw)
To: caml-list
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
-------------------
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
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [Caml-list] streams syntax
2003-02-17 22:37 [Caml-list] streams syntax Oleg
@ 2003-02-17 22:57 ` Alessandro Baretta
2003-02-17 22:58 ` Oleg
2003-02-17 23:13 ` Issac Trotts
1 sibling, 1 reply; 4+ messages in thread
From: Alessandro Baretta @ 2003-02-17 22:57 UTC (permalink / raw)
To: Oleg, ocaml
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>
-------------------
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
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [Caml-list] streams syntax
2003-02-17 22:57 ` Alessandro Baretta
@ 2003-02-17 22:58 ` Oleg
0 siblings, 0 replies; 4+ messages in thread
From: Oleg @ 2003-02-17 22:58 UTC (permalink / raw)
To: Alessandro Baretta, ocaml
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
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [Caml-list] streams syntax
2003-02-17 22:37 [Caml-list] streams syntax Oleg
2003-02-17 22:57 ` Alessandro Baretta
@ 2003-02-17 23:13 ` Issac Trotts
1 sibling, 0 replies; 4+ messages in thread
From: Issac Trotts @ 2003-02-17 23:13 UTC (permalink / raw)
To: OCaml List
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
>
Try this first:
#load "camlp4o.cma";;
Issac
-------------------
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
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2003-02-17 23:08 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-02-17 22:37 [Caml-list] streams syntax Oleg
2003-02-17 22:57 ` Alessandro Baretta
2003-02-17 22:58 ` Oleg
2003-02-17 23:13 ` Issac Trotts
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox