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 NAA07752; Mon, 11 Jun 2001 13:18:16 +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 NAA08005 for caml-list@pauillac.inria.fr; Mon, 11 Jun 2001 13:18:15 +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 BAA22094 for ; Sun, 10 Jun 2001 01:19:13 +0200 (MET DST) Received: from localhost.localdomain (ppp146.dyn147.pacific.net.au [210.23.147.146]) by concorde.inria.fr (8.11.1/8.10.0) with ESMTP id f59NJAn14895 for ; Sun, 10 Jun 2001 01:19:11 +0200 (MET DST) Received: from ozemail.com.au (IDENT:root@localhost [127.0.0.1]) by localhost.localdomain (8.9.3/8.8.7) with ESMTP id JAA26516 for ; Sun, 10 Jun 2001 09:19:03 +1000 Message-ID: <3B22AEE4.D201F3D2@ozemail.com.au> Date: Sun, 10 Jun 2001 09:19:00 +1000 From: John Max Skaller X-Mailer: Mozilla 4.7 [en] (X11; I; Linux 2.2.12-20 i686) X-Accept-Language: en MIME-Version: 1.0 CC: caml-list@inria.fr Subject: Re: [Caml-list] Evaluation Order References: <000701c0f0fd$32c88c90$210148bf@dylan> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk David McClain wrote: [order of evaluation problem] > Any thoughts? (other than that I was boneheaded here!) Actually, I think that the problem is that the Ocaml syntax is basically designed for a referentially transparent functional programming language, which Ocaml is not. If you have a function with side-effects, return 'unit'. At worst: f ( g () ) which is equivalent to g(); f() [Ugh: Felix has a type 'void' to prevent this] -- John (Max) Skaller, mailto:skaller@maxtal.com.au 10/1 Toxteth Rd Glebe NSW 2037 Australia voice: 61-2-9660-0850 checkout Vyper http://Vyper.sourceforge.net download Interscript http://Interscript.sourceforge.net ------------------- Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/ To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr