Version française
Home     About     Download     Resources     Contact us    
Browse thread
[Caml-list] native-code and byte-code compiler differences
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: tim@f...
Subject: Re: [Caml-list] native-code and byte-code compiler differences

I didn't completely anaylze the code, but I see this:

   mouse_action != (fun () -> ())

which has undefined behavior.  Equality among function objects is
allowed to return false at any time, although it shouldn't return true
unless they really are equal.

I also see

    while !st = true do...

which could be improved to

    while !st do...

-- 
Tim Freeman       
tim@fungible.com
-------------------
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