From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (from majordomo@localhost) by pauillac.inria.fr (8.7.6/8.7.3) id GAA15664; Wed, 15 Aug 2001 06:02:15 +0200 (MET DST) X-Authentication-Warning: pauillac.inria.fr: majordomo set sender to owner-caml-list@pauillac.inria.fr using -f Received: from nez-perce.inria.fr (nez-perce.inria.fr [192.93.2.78]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id GAA15722 for ; Wed, 15 Aug 2001 06:02:15 +0200 (MET DST) Received: from mail.streamgate.de (mail.streamgate.de [213.196.64.6]) by nez-perce.inria.fr (8.11.1/8.10.0) with ESMTP id f7F42Ev04444 for ; Wed, 15 Aug 2001 06:02:14 +0200 (MET DST) Received: from gargamel.hqd-internal ([213.196.84.226]) by mail.streamgate.de (Post.Office MTA v3.5.4 release 224 ID# 0-70136U3000L300S0V35) with ESMTP id de for ; Wed, 15 Aug 2001 06:15:20 +0200 Received: from lilith (lilith.hqd-internal [192.168.2.2]) by gargamel.hqd-internal (Postfix on SuSE Linux 7.2 (i386)) with ESMTP id 4CC6EE1F1 for ; Wed, 15 Aug 2001 06:02:18 +0200 (CEST) Received: by lilith (Postfix on SuSE Linux 7.2 (i386), from userid 500) id 87887319E6; Wed, 15 Aug 2001 04:02:12 +0200 (CEST) Date: Wed, 15 Aug 2001 04:02:12 +0200 From: Gerhard =?iso-8859-1?Q?H=E4ring?= To: caml-list@inria.fr Subject: [Caml-list] Newbie Ocaml problem Message-ID: <20010815040212.A4880@lilith.hqd-internal> Reply-To: gerhard@bigfoot.de Mail-Followup-To: caml-list@inria.fr Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.3.16i Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk 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 bigfoot 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