guile-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Controlling the garbage collector?


From: Bobby D. Bryant
Subject: Re: Controlling the garbage collector?
Date: Sun, 18 Mar 2001 00:03:30 +0600

Gary Wong wrote:

> On Sat, Mar 17, 2001 at 07:22:28PM +0600, Bobby D. Bryant wrote:
> > Or is it possible to set up data spaces that are exempt from
> > examination by the garbage collector?
>
> Yes.  It sounds like scm_protect_object() is what you're looking for.  I'm
> not familiar with the Ada bindings, but in C, you would do something like:
> ...
>     s = some_object_which_must_not_be_GCed;
>
>     scm_protect_object( s );

That looks like it will do the trick.

Thanks,

Bobby Bryant
Austin, Texas





reply via email to

[Prev in Thread] Current Thread [Next in Thread]