From: Marius Vollmer <mvo@zagadka.ping.de>
Cc: <guile-user@gnu.org>
Subject: Re: Program that uses Guile crashes
Date: 30 Nov 2002 14:32:08 +0100 [thread overview]
Message-ID: <87fztjb2uf.fsf@zagadka.ping.de> (raw)
In-Reply-To: <000c01c297e7$0c3a1d90$31e090d4@papua8zrg78jqb>
"Janos Blazi" <jblazi@gmx.de> writes:
> Can new and Guile's own allocation scheme coexist?
Yes, certainly. However, Guile's allocation scheme is quite different
from new/delete or malloc/free. You don't have to explicitely delete
or free a object, but you have to take care that the object is always
properly visible to Guile's garbage collector. Objects on the C stack
and inside other Guile objects are automatically visible, but other
objects might not be. For those, you have to call
scm_gc_protect_object and scm_gc_unprotect object at appropriate
times. Or turn your structure into a smob.
--
GPG: D5D4E405 - 2F9B BCCC 8527 692A 04E3 331E FAF8 226A D5D4 E405
_______________________________________________
Guile-user mailing list
Guile-user@gnu.org
http://mail.gnu.org/mailman/listinfo/guile-user
prev parent reply other threads:[~2002-11-30 13:32 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-11-29 20:36 Program that uses Guile crashes Janos Blazi
2002-11-30 13:32 ` Marius Vollmer [this message]
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
List information: https://www.gnu.org/software/guile/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87fztjb2uf.fsf@zagadka.ping.de \
--to=mvo@zagadka.ping.de \
--cc=guile-user@gnu.org \
/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;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).