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 UAA23609; Thu, 30 Oct 2003 20:55:51 +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 UAA23598 for ; Thu, 30 Oct 2003 20:55:50 +0100 (MET) Received: from sockmel.bononia.it (sockmel.bononia.it [193.201.40.5]) by nez-perce.inria.fr (8.11.1/8.11.1) with ESMTP id h9UJtn123219 for ; Thu, 30 Oct 2003 20:55:49 +0100 (MET) Received: from fistandantilus.takhisis.org (sockmel.bononia.it [193.201.40.5]) by sockmel.bononia.it (Postfix) with ESMTP id DEA9E56E87 for ; Thu, 30 Oct 2003 20:55:48 +0100 (CET) Received: by fistandantilus.takhisis.org (Postfix, from userid 3148) id 5B6DE27411D; Thu, 30 Oct 2003 20:55:48 +0100 (CET) Date: Thu, 30 Oct 2003 20:55:48 +0100 From: Stefano Zacchiroli To: caml-list@inria.fr Subject: Re: [Caml-list] undocumented external ... = "%identity" Message-ID: <20031030195548.GD19967@fistandantilus.takhisis.org> Mail-Followup-To: caml-list@inria.fr References: <20031029104248.GA6566@fistandantilus.takhisis.org> <20031029203935I.garrigue@kurims.kyoto-u.ac.jp> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20031029203935I.garrigue@kurims.kyoto-u.ac.jp> User-Agent: Mutt/1.5.4i X-Loop: caml-list@inria.fr X-Spam: no; 0.00; bononia:01 caml-list:01 undocumented:01 0900,:01 jacques:01 restate:01 undocumented:01 interfacing:01 apis:01 bononia:01 unsafe:01 garrigue:01 external:03 bologna:03 wrote:03 Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk On Wed, Oct 29, 2003 at 08:39:35PM +0900, Jacques Garrigue wrote: > I suppose that as Obj.magic is not documented, this is not documented > either. Ok, thanks for your answer. Now, let me restate my question: whi obj.magic _and_ "%identity" are not documented? Usually undocumented stuff is stuff subject to changes, not stable, ecc ... Practically, a lot of people use Obj.magic when needed and it seems to be part of the required knowledge to be a "discriminating hacker"(TM). The reason that it's unsafe and can make your program crash, IMO, is not a good reason not to have it documented. Indeed C interfacing APIs are documented and they are as risky as using Obj.magic and friends. Cheers. -- Stefano Zacchiroli -- Master in Computer Science @ Uni. Bologna, Italy zack@{cs.unibo.it,debian.org,bononia.it} - http://www.bononia.it/zack/ " I know you believe you understood what you think I said, but I am not sure you realize that what you heard is not what I meant! " -- G.Romney ------------------- 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