guile-user
[Top][All Lists]
Advanced

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

Re: gc question


From: rixed
Subject: Re: gc question
Date: Mon, 9 May 2011 11:05:42 +0200
User-agent: Mutt/1.5.20 (2009-06-14)

-[ Mon, May 09, 2011 at 11:14:11AM +0200, address@hidden ]----
> am I correct in assuming that the return value from
> scm_from_locale_keyword("unknown"); 
> won't ever be garbage collected od do I have to protect 
> it?

>From an IRC discussion some time ago:

16:11 < rixed> BTW, is it required to scm_gc_protect_object a symbol ?
16:11 < civodul> no
16:13 < rixed> civodul: even with guile 1.8?
16:14 < civodul> in 1.8 you have to protect it
16:14 < civodul> but you should use the snarfing macros
16:14 < civodul> SCM_SYMBOL and SCM_GLOBAL_SYMBOL
16:14 < rixed> civodul: well, probably, but that's my first project using guile 
so I'd rather do it by hand - I find it actualy simpler :)
16:14 < dsmith-work> Wasn't there some recent changes that allow symbols to be 
gc'd?
16:16 < civodul> rixed: ok; so if you want both 1.8 and 1.6, then always 
scm_gc_protect_object
16:16 < civodul> s/1.6/2.0/
16:29 < rixed> civodul: will do. thanx!

So I'd say it depends on the target guile version.




reply via email to

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