On Thu, Nov 25, 2010 at 06:15:50AM -0500, Felix wrote: > >> Sorry, I don't understand? They are not invalidated by GC (in case > >> you mean that). > > > > So that means the locative will stay around while the string itself > > might have been collected? > > If it's a weak locative, yes. But dereferencing will signal an > error in this case. But I thought this is about being able to > point into a string?
Yeah, but it's stored in a closure and the GC should be prevented from cleaning up the original string which may not be referenced anywhere anymore I guess. > I'm probably confused or didn't fully > understand the original problem. Me too. I'll stop talking for Alan and let him answer your questions instead ;) Cheers, Peter -- http://sjamaan.ath.cx -- "The process of preparing programs for a digital computer is especially attractive, not only because it can be economically and scientifically rewarding, but also because it can be an aesthetic experience much like composing poetry or music." -- Donald Knuth _______________________________________________ Chicken-users mailing list [email protected] http://lists.nongnu.org/mailman/listinfo/chicken-users
