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 WAA20226; Fri, 2 Apr 2004 22:50:59 +0200 (MET DST) X-Authentication-Warning: pauillac.inria.fr: majordomo set sender to owner-caml-list@pauillac.inria.fr using -f Received: from concorde.inria.fr (concorde.inria.fr [192.93.2.39]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id WAA22783 for ; Fri, 2 Apr 2004 22:50:58 +0200 (MET DST) Received: from mx5.informatik.uni-tuebingen.de (mx5.Informatik.Uni-Tuebingen.De [134.2.12.32]) by concorde.inria.fr (8.12.10/8.12.10) with ESMTP id i32KovYM031532 for ; Fri, 2 Apr 2004 22:50:57 +0200 Received: from localhost (loopback [127.0.0.1]) by mx5.informatik.uni-tuebingen.de (Postfix) with ESMTP id 97C7010E; Fri, 2 Apr 2004 22:50:56 +0200 (DFT) Received: from mx3.informatik.uni-tuebingen.de ([134.2.12.26]) by localhost (mx5 [134.2.12.32]) (amavisd-new, port 10024) with ESMTP id 47692-01; Fri, 2 Apr 2004 22:50:54 +0200 (DFT) Received: from juist (semeai [134.2.15.66]) by mx3.informatik.uni-tuebingen.de (Postfix) with ESMTP id 42F8E149; Fri, 2 Apr 2004 22:50:53 +0200 (DFT) Received: from falk by juist with local (Exim 3.36 #1 (Debian)) id 1B9Vcj-000150-00; Fri, 02 Apr 2004 22:50:45 +0200 To: Brian Hurt Cc: Ocaml Mailing List Subject: Re: [Caml-list] Stupid question about the toplevel References: From: Falk Hueffner X-Face: "iUeUu$b*W_"w?tV83Y3*r:`rh&dRv}$YnZ3,LVeCZSYVuf[Gpo*5%_=/\_!gc_,SS}[~xZ wY77I-M)xHIx:2f56g%/`SOw"Dx%4Xq0&f\Tj~>|QR|vGlU}TBYhiG(K:2 (Brian Hurt's message of "Fri, 2 Apr 2004 15:47:17 -0600 (CST)") Message-ID: <87vfki9k9t.fsf@informatik.uni-tuebingen.de> User-Agent: Gnus/5.1006 (Gnus v5.10.6) XEmacs/21.5 (cabbage, linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Virus-Scanned: by amavisd-new (McAfee AntiVirus) at informatik.uni-tuebingen.de X-Miltered: at concorde by Joe's j-chkmail ("http://j-chkmail.ensmp.fr")! X-Loop: caml-list@inria.fr X-Spam: no; 0.00; caml-list:01 stupid:01 falk:01 hueffner:01 hueffner:01 3.07:01 stdin:01 val:01 falk:01 ocaml:01 caml:01 int:01 int:01 toplevel:01 toplevel:01 Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk X-Status: X-Keywords: X-UID: 38 Brian Hurt writes: > An example toplevel experience: > $ ocaml > Objective Caml version 3.07 > > # 3+4;; > - : int = 7 > # > > So what's the "-" at the begining of the line mean? Originally I thought > it meant that the input came from stdin, but I've been unable to change it > to anything else. Is it just "this line comes from the toplevel and not > your code"? No, it's the identifier the value was bound to: # let x = 17;; val x : int = 17 -- Falk ------------------- 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