[
Home
]
[ Index:
by date
|
by threads
]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: | 2004-12-29 (16:48) |
From: | Nicolas Cannasse <warplayer@f...> |
Subject: | Re: [Caml-list] Obj.dup crash ? |
> Nicolas Cannasse wrote: > > let test() = > > let a = Obj.new_block 0 0 in > > let b = Obj.dup a in > > Gc.major() > > ;; > > Because the function caml_obj_dup returns directly the argument > when it has size 0. I guess it should use CAMLreturn and not return, > because it defines local variables with CAMLlocal. > > -- Alain Exact. Could this be fixed in next release ? I don't understand why it returns the argument since even with 0 fields the tag is mutable using Obj.set_tag. Regards, Nicolas