Re: Real World Ocaml examples not working
| Newsgroups | gmane.comp.lang.ocaml.beginners |
|---|---|
| Message-ID | <[email protected]> |
Christopher Zimmermann schreef op 16-10-2014 13:06: On Thu, 16 Oct 2014 12:44:15 +0200 "Roelof Wobben [email protected] [ocaml_beginners]" <[email protected]> wrote: Hello, I try some examples of the realword Ocaml book but now I see this output : # let ratio x y = Float.of_int x / Float.of_int y ;; Error: Unbound module Float # open Core.std ;; Error: Syntax error # open Core.Std ;; Error: Unbound module Core How to solve this ? Roelof I strongly recommend using utop as toplevel. Then in utop enter #require "core";; Otherwise for a standard ocaml toplevel with findlib and core libraries installed do #use "topfind";; #thread;; #require "core";; open Core.Std;; Christopher Thanks, but the error message stays. ─( 00:00:00 )─< command 0 >──────────────────────────────────────────────────────────────────────&# 9472;──────────────────────────────────────────────────────────────── ────────{ counter: 0 }─ utop # #require "core";; &nb sp; nbsp; ─( 11:16:59 )─< command 1 >──────────────────────────────────────────────────────────────────────&# 9472;──────────────────────────────────────────────────────────────── ────────{ counter: 0 }─ utop # let ratio x y = &n bsp; Float.of_int x /. Float.of_int y   ; ;; &nb sp; &n bsp; Error: Unbound module Float Roelof Wobben __._,_.___ ---------- Posted by: Roelof Wobben <[email protected]> ---------- Reply via web post • Reply to sender • Reply to group • Start a New Topic • Messages in this topic (3) Archives up to December 31, 2011 are also downloadable at http://www.connettivo.net/cntprojects/ocaml_beginners The archives of the very official ocaml list (the seniors' one) can be found at http://caml.inria.fr Attachments are banned and you're asked to be polite, avoid flames etc. Visit Your Group https://groups.yahoo.com/neo;_ylc=X3oDMTJkMDI5MThxBF9TAzk3NDc2NTkwBGdycElkAzQ5OTkxOTQEZ3Jwc3BJZAMxNzA1MDA2NzY0BHNlYwNmdHIEc2xrA2dmcARzdGltZQMxNDEzNDU4NDc5 • Privacy • Unsubscribe • Terms of Use . __,_._,___