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 VAA25695; Fri, 1 Feb 2002 21:05:53 +0100 (MET) 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 VAA26021 for ; Fri, 1 Feb 2002 21:05:52 +0100 (MET) Received: from mel-rto7.wanadoo.fr (smtp-out-7.wanadoo.fr [193.252.19.26]) by nez-perce.inria.fr (8.11.1/8.11.1) with ESMTP id g11K5qv07550 for ; Fri, 1 Feb 2002 21:05:52 +0100 (MET) Received: from mel-rta2.wanadoo.fr (193.252.19.152) by mel-rto7.wanadoo.fr; 1 Feb 2002 21:05:52 +0100 Received: from debian (80.8.75.34) by mel-rta2.wanadoo.fr; 1 Feb 2002 21:05:47 +0100 Received: from moi by debian with local (Exim 3.34 #1 (Debian)) id 16WjwY-00017x-00 for ; Fri, 01 Feb 2002 21:05:54 +0100 To: caml-list@inria.fr Subject: Re: [Caml-list] =?iso-8859-15?q?D=E9veloppement?= d'applications avec Objective Caml... [< >] in 3.04? References: <20020201194134.TCTL18883.fep41-svc.tin.it@there> From: Remi VANICAT Date: 01 Feb 2002 21:05:54 +0100 In-Reply-To: <20020201194134.TCTL18883.fep41-svc.tin.it@there> Message-ID: <878zadhsrh.dlv@wanadoo.fr> User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.1 MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-15 Content-Transfer-Encoding: 8bit Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk stalkern2 writes: > Hello to everybody > > I'm studying the book of Chailloux, Manoury and Pagano and I' m now taking > into considerations the streams. > Using a plain ocaml prompt with Ocaml 3.04 on a RedHat box (coming from a > rpm), I get > > # let foo = [< >];; > ^^ > Syntax error parser need camlp4 since ocaml 3.04 (I think) you have to do # #load "camlp4o.cma" before any [< >] expression. This information is at least in the Change file of the caml distribution, and also in the ocaml manual : http://caml.inria.fr/ocaml/htmlman/manual021.html (may be the #load "camlp4o.cma" should be add there) > > I get the same error on a MacOS 9 box, using the standard Ocaml distribution. > > I have plenty of expressions parenthesized with [< >] in the source > distribution, and I learnt that I could optionally use [: :] if I say so to > Camlp4. But neither [< >] nor [: :], that gives > # let foo = [: :];; this is the camlp4 revised syntax. be aware it change a lot of thing (and not only [< and >]) # #load "camlp4r.cma" # value foo = [: :]; ... -- Rémi Vanicat vanicat@labri.u-bordeaux.fr http://dept-info.labri.u-bordeaux.fr/~vanicat ------------------- 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