From: "Nicolas Cannasse" <warplayer@free.fr>
To: "Alain Frisch" <Alain.Frisch@inria.fr>,
"caml users" <caml-list@inria.fr>
Subject: Re: [Caml-list] Obj.dup crash ?
Date: Wed, 29 Dec 2004 17:49:32 +0100 [thread overview]
Message-ID: <002001c4edc6$5f2b7e90$0100a8c0@warp> (raw)
In-Reply-To: <41D2D205.5030106@inria.fr>
> 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
next prev parent reply other threads:[~2004-12-29 16:48 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-12-29 13:38 Nicolas Cannasse
2004-12-29 15:49 ` [Caml-list] " Alain Frisch
2004-12-29 16:49 ` Nicolas Cannasse [this message]
[not found] ` <41D358E2.4000604@inria.fr>
2004-12-30 11:04 ` Nicolas Cannasse
2004-12-30 21:48 ` skaller
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='002001c4edc6$5f2b7e90$0100a8c0@warp' \
--to=warplayer@free.fr \
--cc=Alain.Frisch@inria.fr \
--cc=caml-list@inria.fr \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox