From: Alain Frisch <Alain.Frisch@inria.fr>
To: Nicolas Cannasse <warplayer@free.fr>, caml users <caml-list@inria.fr>
Subject: Re: [Caml-list] Obj.dup crash ?
Date: Wed, 29 Dec 2004 16:49:25 +0100 [thread overview]
Message-ID: <41D2D205.5030106@inria.fr> (raw)
In-Reply-To: <025c01c4edab$a708d160$0100a8c0@warp>
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
next prev parent reply other threads:[~2004-12-29 15:50 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 ` Alain Frisch [this message]
2004-12-29 16:49 ` [Caml-list] " Nicolas Cannasse
[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=41D2D205.5030106@inria.fr \
--to=alain.frisch@inria.fr \
--cc=caml-list@inria.fr \
--cc=warplayer@free.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