On Thu 19 Aug 2010 19:10, Abhijeet More <abhijeet.m...@gmail.com> writes:
> Hi, > I noticed that the implementation of the "promise" smob did not have > any "mark" function defined. > This smob does contain a couple of other SCM objects. > > Can someone explain how these objects are not cleared up by the gc > (since nobody marks them as live)? If you do not provide a mark function, the GC will treat all words in an object as pointers, and mark them. The problem, I think, is not that the promise refers to its value: it is that something is mistakenly referring to the promise (and thence to the value). Andy -- http://wingolog.org/