From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.1.3 (2006-06-01) on yquem.inria.fr X-Spam-Level: * X-Spam-Status: No, score=1.1 required=5.0 tests=AWL,SPF_SOFTFAIL autolearn=disabled version=3.1.3 X-Original-To: caml-list@yquem.inria.fr Delivered-To: caml-list@yquem.inria.fr Received: from nez-perce.inria.fr (nez-perce.inria.fr [192.93.2.78]) by yquem.inria.fr (Postfix) with ESMTP id 70FD7BC29 for ; Tue, 29 Aug 2006 19:56:28 +0200 (CEST) Received: from smtp-roam.Stanford.EDU (smtp-roam.Stanford.EDU [171.64.10.152]) by nez-perce.inria.fr (8.13.6/8.13.6) with ESMTP id k7THuROD023986 for ; Tue, 29 Aug 2006 19:56:27 +0200 Received: from [192.168.1.10] (rescomp-04-35677.Stanford.EDU [128.12.177.67]) (authenticated bits=0) by smtp-roam.Stanford.EDU (8.12.11/8.12.11) with ESMTP id k7THuK21012416 (version=TLSv1/SSLv3 cipher=RC4-SHA bits=128 verify=NOT); Tue, 29 Aug 2006 10:56:20 -0700 In-Reply-To: <1156853008.21883.84.camel@localhost.localdomain> References: <53c655920608250051x48d81cbagabf8039f0269beee@mail.gmail.com> <1156505490.20759.354.camel@rosella.wigram> <1156853008.21883.84.camel@localhost.localdomain> Mime-Version: 1.0 (Apple Message framework v752.2) Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Message-Id: Cc: Ocaml Content-Transfer-Encoding: 7bit From: Ted Kremenek Subject: Re: [Caml-list] Class/prototype-based OO Date: Tue, 29 Aug 2006 10:56:16 -0700 To: Gerd Stolpmann X-Mailer: Apple Mail (2.752.2) X-Miltered: at nez-perce with ID 44F47FCB.000 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Spam: no; 0.00; gerd:01 stolpmann:01 rtti:01 o'caml:01 rtti:01 2006,:98 wrote:01 caml-list:01 structures:02 types:03 complex:04 aug:06 space:07 theory:09 object:09 On Aug 29, 2006, at 5:03 AM, Gerd Stolpmann wrote: > In theory, RTTI is possible in O'Caml. But it is very costly: Object > types are complex structures and not only names. So any downcast would > be a very expensive operation (a full type check). Of course, but this cost would only be incurred during the downcast. Thus people who do not need to use the operation will not pay for it. Of course, the RTTI information comes with a space cost.