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 LAA23087; Thu, 9 Jan 2003 11:53:13 +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 LAA23190 for ; Thu, 9 Jan 2003 11:53:12 +0100 (MET) Received: from smtp6.wanadoo.nl (smtp6.wanadoo.nl [194.134.35.177]) by nez-perce.inria.fr (8.11.1/8.11.1) with ESMTP id h09ArB511016 for ; Thu, 9 Jan 2003 11:53:11 +0100 (MET) Received: from wanadoo.nl (p4274.vwr.wanadoo.nl [212.129.234.186]) by smtp6.wanadoo.nl (Postfix) with ESMTP id 1088B70BD5 for ; Thu, 9 Jan 2003 11:53:10 +0100 (CET) Message-ID: <3E1D5A7B.6050309@wanadoo.nl> Date: Thu, 09 Jan 2003 12:18:19 +0100 From: Maas-Maarten Zeeman User-Agent: Mozilla/5.0 (X11; U; Linux i586; en-US; rv:1.1) Gecko/20020826 X-Accept-Language: en-us, en MIME-Version: 1.0 To: caml-list@inria.fr Subject: [Caml-list] possible camlp4 problem/bug with literal booleans in expr quotations. Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk Hi, I'm experimenting with camlp4 and found this problem. file: forever.ml #load "q_MLast.cmo";; #load "pa_extend.cmo";; open Pcaml;; EXTEND expr: LEVEL "expr1" [ [ "forever"; body=expr -> <:expr< while true do { $body$ } >> ] ]; END;; file: bar.ml let _ = forever print_string "0"; compilation: $ ocamlc -pp camlp4o -I +camlp4 -c forever.ml $ ocamlc -pp "camlp4o ./forever.cmo" bar.ml File "bar.ml", line 1, characters 8-33: Unbound value true But when you substitute 1=1 for true this works as expected. Can true not be used as literal in expr quotations? Thanks, Maas ------------------- 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