|
From: | Han-Wen Nienhuys |
Subject: | Re: self_scm_=SCM_EOL; |
Date: | Tue, 16 Aug 2005 21:51:16 +0200 |
User-agent: | Mozilla Thunderbird 1.0.6-1.1.fc4 (X11/20050720) |
Erik Sandberg wrote:
Hi,I noticed that the self_scm_=SCM_EOL;line is missing in many constructors of smobs, e.g. in Context. Is this safe?I don't know about Guile internals, but I can imagine that smobify_self() could trigger a GC, which could do bad things. I don't understand why this would be less risky in classes which have no subclasses.
the self_scm_ is never marked, so yes, this is safe. -- Han-Wen Nienhuys - address@hidden - http://www.xs4all.nl/~hanwen
[Prev in Thread] | Current Thread | [Next in Thread] |