caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
* [Caml-list] OO runtime calling Random.int.
@ 2003-05-16 23:20 David Brown
  0 siblings, 0 replies; only message in thread
From: David Brown @ 2003-05-16 23:20 UTC (permalink / raw)
  To: Caml List

I eventually figured out today that the ocaml runtime is calling
Random.int inside of CamlinternalOO.choose.  This was causing the
bahavior of my program to change when I added new classes (specifically,
when I would inherit).  I fixed it in this case, by calling Random.init
later on in initialization.

My real question is when can this be called?  Is this something that
will only happen during startup of a given module, or can it happen
later?

Thanks,
Dave Brown

-------------------
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


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2003-05-16 23:20 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-05-16 23:20 [Caml-list] OO runtime calling Random.int David Brown

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).