On Mon, May 09, 2011 at 11:05:42AM +0200, [email protected] wrote: > -[ Mon, May 09, 2011 at 11:14:11AM +0200, [email protected] ]---- > > 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.
But that talk was about symbols (which might well go aut of scope), im asking about _keywords_ whose semantics seem to be different. Cheers, RalfD
