caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
* [Caml-list] Newbie Ocaml problem
@ 2001-08-15  2:02 Gerhard Häring
  2001-08-15  5:10 ` Michael Vanier
  0 siblings, 1 reply; 2+ messages in thread
From: Gerhard Häring @ 2001-08-15  2:02 UTC (permalink / raw)
  To: caml-list

Hello,

I'd like to finally learn some functional programming. I thought Ocaml might be
a good choice because it also has imperative features, so transition to a
functional language like Ocaml is probably smoother than, say Haskell.

I started with the Ocaml tutorial, but I learn best with real problems (I'd
like to translate a few of my Python scripts to Ocaml), so I need things from
the standard library. In particular, I need the Unix module. And here I've hit
a problem:

gerhard@lilith:~ > ocaml
Objective Caml version 3.02

# Sys.os_type;;
- : string = "Unix"
# Unix.getpid;;
Reference to undefined global `Unix'
#

I can use the Sys module, but whenever I try to use stuff from the Unix module,
I get the error message above. It must be something obvious I am missing. But
what?

Thanks,

Gerhard
-- 
mail:   gerhard <at> bigfoot <dot> de       registered Linux user #64239
web:    http://www.cs.fhm.edu/~ifw00065/    public key at homepage
public key fingerprint: DEC1 1D02 5743 1159 CD20  A4B6 7B22 6575 86AB 43C0
reduce(lambda x,y:x+y,map(lambda x:chr(ord(x)^42),tuple('zS^BED\nX_FOY\x0b')))
-------------------
Bug reports: http://caml.inria.fr/bin/caml-bugs  FAQ: http://caml.inria.fr/FAQ/
To unsubscribe, mail caml-list-request@inria.fr  Archives: http://caml.inria.fr


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2001-08-15  5:10 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-08-15  2:02 [Caml-list] Newbie Ocaml problem Gerhard Häring
2001-08-15  5:10 ` Michael Vanier

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).