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 PAA04153; Tue, 8 Jul 2003 15:38:19 +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 PAA03419 for ; Tue, 8 Jul 2003 15:38:18 +0200 (MET DST) Received: from pauillac.inria.fr (pauillac.inria.fr [128.93.11.35]) by concorde.inria.fr (8.11.1/8.11.1) with ESMTP id h68DcGf06842; Tue, 8 Jul 2003 15:38:17 +0200 (MET DST) Received: (from xleroy@localhost) by pauillac.inria.fr (8.7.6/8.7.3) id PAA03720; Tue, 8 Jul 2003 15:38:16 +0200 (MET DST) Date: Tue, 8 Jul 2003 15:38:16 +0200 From: Xavier Leroy To: "\"Dmitry Bely\" " Cc: caml-list@inria.fr Subject: Re: [Caml-list] -unsafe and camlp4 Message-ID: <20030708153816.D19338@pauillac.inria.fr> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0i In-Reply-To: ; from dbely@mail.ru on Tue, Jul 08, 2003 at 04:49:04PM +0400 X-Loop: caml-list@inria.fr X-Spam: no; 0.00; caml-list:01 -unsafe:01 camlp:01 ocamlopt:01 -pp:01 notations:01 ocamlc:01 compiler:01 modules:02 string:03 array:04 functions:05 seems:05 parsed:06 parsing:09 Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk > Can two things live together? When I run ocamlopt -unsafe -pp > "camlp4 ..." ..., compiler prints warning and -unsafe seems to be > ignored. Am I doing something wrong? "-unsafe" is a parsing-time option: it governs how the .[] and .() notations are parsed into applications of functions from the Array and String modules. Hence, if you use camlp4 for parsing, you should pass the -unsafe option to camlp4, not to ocamlc/ocamlopt. - Xavier Leroy ------------------- 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