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 TAA02373; Wed, 6 Aug 2003 19:44:07 +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 TAA04746 for ; Wed, 6 Aug 2003 19:44:05 +0200 (MET DST) Received: from aomori.annexia.org (annexia.force9.co.uk [212.56.101.183]) by nez-perce.inria.fr (8.11.1/8.11.1) with ESMTP id h76Hi5T15516 for ; Wed, 6 Aug 2003 19:44:05 +0200 (MET DST) Received: from rich by aomori.annexia.org with local (Exim 3.36 #1 (Debian)) id 19kSJu-000815-00; Wed, 06 Aug 2003 18:43:30 +0100 Date: Wed, 6 Aug 2003 18:43:30 +0100 To: brogoff@speakeasy.net Cc: David Brown , Vovka , "caml-list@inria.fr" Subject: Re: [Caml-list] static class member.... Message-ID: <20030806174330.GA30804@redhat.com> References: <20030806151051.GB29704@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.4i From: Richard Jones X-Loop: caml-list@inria.fr X-Spam: no; 0.00; caml-list:01 brogoff:01 bug:01 freshmeat:01 ltd:98 compiler:01 irrelevant:01 0700,:01 speakeasy:01 06,:02 objects:02 business:96 wrote:03 object:03 data:03 Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk On Wed, Aug 06, 2003 at 09:12:24AM -0700, brogoff@speakeasy.net wrote: > Yes, it says in the language introduction (the part on objects) > > Let-bindings within class definitions are evaluated before the object > is constructed Well I take it back. And I must admit that I always have used let-bindings as if they are local to the instance. The question though is why does my example work? Is this a bug in the compiler? Rich. -- Richard Jones. http://www.annexia.org/ http://freshmeat.net/users/rwmj Merjis Ltd. http://www.merjis.com/ - all your business data are belong to you. All new technology is irrelevant until it is taken up by the public. ------------------- 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