-[ Tue, Aug 16, 2011 at 01:17:28PM +0300, Török Edwin ]---- > So a best practice would be to always use a temporary variable > registered with CAMLlocal* when you call a function that can potentially > invoke the GC?
I would say the best practive would be to not call an allocating function from a parameters list, since other values in the parameters list are unregistered copies untill the call is taken. I would really like to see this exemple in the manual as well. -- Caml-list mailing list. Subscription management and archives: https://sympa-roc.inria.fr/wws/info/caml-list Beginner's list: http://groups.yahoo.com/group/ocaml_beginners Bug reports: http://caml.inria.fr/bin/caml-bugs