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 LAA13808; Mon, 19 Jul 2004 11:28:56 +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 LAA13719; Mon, 19 Jul 2004 11:28:55 +0200 (MET DST) Received: from pauillac.inria.fr (pauillac.inria.fr [128.93.11.35]) by nez-perce.inria.fr (8.12.10/8.12.10) with ESMTP id i6J9SjEV025654; Mon, 19 Jul 2004 11:28:45 +0200 Received: (from weis@localhost) by pauillac.inria.fr (8.7.6/8.7.3) id LAA14403; Mon, 19 Jul 2004 11:28:45 +0200 (MET DST) From: Pierre Weis Message-Id: <200407190928.LAA14403@pauillac.inria.fr> Subject: Re: [Caml-list] kprintf with user formatters In-Reply-To: <20040716165237.GB741@fichte.ai.univie.ac.at> from Markus Mottl at "Jul 16, 104 06:52:37 pm" To: markus@oefai.at (Markus Mottl) Date: Mon, 19 Jul 2004 11:28:45 +0200 (MET DST) Cc: pierre.weis@inria.fr, caml-list@inria.fr X-Mailer: ELM [version 2.4ME+ PL28 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Miltered: at nez-perce with ID 40FB944D.000 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Loop: caml-list@inria.fr X-Spam: no; 0.00; pierre:01 weis:01 pierre:01 weis:01 caml-list:01 kprintf:01 formatters:01 prohibit:01 prohibit:01 generics:01 compiler:01 cristal:01 unsafe:01 ocaml:01 caml:01 Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk [...] > > # log false "";; > > - : unit = [...] > > There is clearly something wrong! > > Oh, come on, don't prohibit my use of Obj.magic by demonstrating strange > interactions with the equally unsafe Marshal-module ;-) I cannot and would not like to prohibit your uses of Obj.magic. Go on if you dare. I just pointed out that this particular use of Obj.magic created a value that is considered by the Caml system as an ``'': a value that breaks the compiler invariant so deeply that it cannot print it. This is a bad property that could eventually bit your program and crash it. > Btw., what has happened to generics? They were said to solve problems > associated with type safety and I/O. Any intentions to put them into > the experimental CVS-tree of OCaml? That's still something to do... Regards, Pierre Weis INRIA, Projet Cristal, Pierre.Weis@inria.fr, http://pauillac.inria.fr/~weis/ ------------------- 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