From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Original-To: caml-list@yquem.inria.fr Delivered-To: caml-list@yquem.inria.fr Received: from concorde.inria.fr (concorde.inria.fr [192.93.2.39]) by yquem.inria.fr (Postfix) with ESMTP id 294A6BB83 for ; Fri, 5 May 2006 21:32:59 +0200 (CEST) Received: from pauillac.inria.fr (pauillac.inria.fr [128.93.11.35]) by concorde.inria.fr (8.13.0/8.13.0) with ESMTP id k45JWwCA006595 for ; Fri, 5 May 2006 21:32:58 +0200 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 VAA01730 for ; Fri, 5 May 2006 21:32:57 +0200 (MET DST) Received: from localhost (BSN-77-186-71.dsl.siol.net [193.77.186.71]) by concorde.inria.fr (8.13.0/8.13.0) with ESMTP id k45JWt77006584 (version=TLSv1/SSLv3 cipher=AES256-SHA bits=256 verify=NO) for ; Fri, 5 May 2006 21:32:57 +0200 Received: from localhost ([127.0.0.1] ident=andrej) by localhost with esmtp (Exim 4.61) (envelope-from ) id 1Fc62l-0006SW-PZ; Fri, 05 May 2006 21:32:51 +0200 Message-ID: <445BA863.3080101@andrej.com> Date: Fri, 05 May 2006 21:32:51 +0200 From: Andrej Bauer User-Agent: Debian Thunderbird 1.0.7 (X11/20051017) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Remi Vanicat Cc: caml-list@inria.fr Subject: Re: [Caml-list] OO design References: <53c655920605050235k64e70333je8df813239ea3c53@mail.gmail.com> <6b8a91420605050600g1d2e7ea9t2ee5e5df126819c6@mail.gmail.com> In-Reply-To: <6b8a91420605050600g1d2e7ea9t2ee5e5df126819c6@mail.gmail.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-j-chkmail-Score: MSGID : 445BA867.000 on concorde : j-chkmail score : XX : 0/20 2 X-Miltered: at concorde with ID 445BA86A.000 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Miltered: at concorde with ID 445BA867.000 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Spam: no; 0.00; andrej:01 andrej:01 2006:98 wrote:01 caml-list:01 exception:01 remi:01 vanicat:01 function:08 object:09 bauer:09 bauer:09 loop:13 print:13 type:13 X-Spam-Checker-Version: SpamAssassin 3.0.3 (2005-04-27) on yquem.inria.fr X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=none autolearn=disabled version=3.0.3 Remi Vanicat wrote: > 2006/5/5, David Baelde : > after this, the only way to produce an object of type enter is to call > the original enter method (same for leave). ... or throw an exception, or loop forever, or print a poem on sreen then call the original function, or call original enter twice, or call original enter, then original leave, then original enter, etc. Andrej