caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
* [Caml-list] [newbie] How can I use Stream in toplevel ?
@ 2004-06-28 18:39 Gu Nu
  2004-06-28 19:03 ` Benjamin Geer
  0 siblings, 1 reply; 2+ messages in thread
From: Gu Nu @ 2004-06-28 18:39 UTC (permalink / raw)
  To: caml-list

Hi,  all

Since Stream is not part of the stable core of Object
Caml, how can I use it in a toplevel? I compiled
stream.ml in Ocaml library directory, and typed the
following command in toplevel :

# #load "stream.cmo";;
# open Stream;;

# [< >];;
 
 I got sytax error here. However, according to
O'Rielly 's book, Stream should be describled in this
way. How can I solve this problem? 

Thank you so much.

Andy


		
__________________________________
Do you Yahoo!?
Yahoo! Mail - Helps protect you from nasty viruses.
http://promotions.yahoo.com/new_mail

-------------------
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] 2+ messages in thread

* Re: [Caml-list] [newbie] How can I use Stream in toplevel ?
  2004-06-28 18:39 [Caml-list] [newbie] How can I use Stream in toplevel ? Gu Nu
@ 2004-06-28 19:03 ` Benjamin Geer
  0 siblings, 0 replies; 2+ messages in thread
From: Benjamin Geer @ 2004-06-28 19:03 UTC (permalink / raw)
  To: Gu Nu; +Cc: caml-list

Gu Nu wrote:
> Since Stream is not part of the stable core of Object
> Caml, how can I use it in a toplevel?

Streams are supported by Camlp4:

http://caml.inria.fr/camlp4/manual/

# #load "camlp4o.cma" ;;
         Camlp4 Parsing version 3.07+2

# #load "pa_o.cmo" ;;
# #load "pa_op.cmo" ;;
# [< >] ;;
- : 'a Stream.t = <abstr>

Please post questions like this to the beginners' list:

http://groups.yahoo.com/group/ocaml_beginners

Ben

-------------------
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] 2+ messages in thread

end of thread, other threads:[~2004-06-28 19:04 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-06-28 18:39 [Caml-list] [newbie] How can I use Stream in toplevel ? Gu Nu
2004-06-28 19:03 ` Benjamin Geer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).