Version française
Home     About     Download     Resources     Contact us    
Browse thread
[Caml-list] Evaluation Order
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: John Max Skaller <skaller@o...>
Subject: Re: [Caml-list] Evaluation Order
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