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 AAA02503; Mon, 5 Aug 2002 00:56:09 +0200 (MET DST) X-Authentication-Warning: pauillac.inria.fr: majordomo set sender to owner-caml-list@pauillac.inria.fr using -f Received: (from weis@localhost) by pauillac.inria.fr (8.7.6/8.7.3) id AAA02804 for caml-list@pauillac.inria.fr; Mon, 5 Aug 2002 00:56:08 +0200 (MET DST) 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 EAA25009 for ; Sun, 4 Aug 2002 04:23:02 +0200 (MET DST) Received: from wptx49.physik.uni-wuerzburg.de (wptx49.physik.uni-wuerzburg.de [132.187.40.49]) by concorde.inria.fr (8.11.1/8.11.1) with ESMTP id g7428U515908 for ; Sun, 4 Aug 2002 04:08:37 +0200 (MET DST) Received: from wptx47.physik.uni-wuerzburg.de (wptx47.physik.uni-wuerzburg.de [132.187.40.47]) by wptx49.physik.uni-wuerzburg.de (8.10.0/8.10.0.Beta6) with ESMTP id g7428Oj26044; Sun, 4 Aug 2002 04:08:24 +0200 (METDST) Received: (from ohl@localhost) by wptx47.physik.uni-wuerzburg.de (8.10.0.Beta12/8.10.0.Beta12) id g7428OV13830; Sun, 4 Aug 2002 04:08:24 +0200 From: Thorsten Ohl Message-ID: <15692.35992.183045.427094@wptx47.physik.uni-wuerzburg.de> Date: Sun, 4 Aug 2002 04:08:24 +0200 To: caml-list@inria.fr Cc: John Prevost Subject: Re: [Caml-list] Creating mutually dependent objects? In-Reply-To: <86eldfa1ho.fsf@laurelin.dementia.org> References: <15690.48916.704957.774489@wptx47.physik.uni-wuerzburg.de> <86eldfa1ho.fsf@laurelin.dementia.org> X-Mailer: VM 6.84 under Emacs 20.7.1 Reply-To: ohl@physik.uni-wuerzburg.de Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk John Prevost writes: > Value constructors [...] are not allowed to run code--they just plop > the value down in the appropriate place. And even then, if they're > hidden behind functions, they can't be used this way, since it's > *syntactic analysis* of the code that allows these constructions to > be used in a let rec. I see. My error was to overlook that a typechecker can't figure out that the mutual references are never used as arguments to non trivial functions. > Hope this was helpful, It was. Thanks, -Thorsten -- Thorsten Ohl, Physics Dept., Wuerzburg Univ. -- ohl@physik.uni-wuerzburg.de http://theorie.physik.uni-wuerzburg.de/~ohl/ [<=== PGP public key here] ------------------- 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