This is the mail archive of the guile@cygnus.com mailing list for the guile project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: scm_weak_symhash


Jost Boekemeier <jostobfe@calvados.zrz.TU-Berlin.DE> writes:

> When something like `(define hugo 12)' is entered, the symbol `hugo'
> is interned in the weak symhash table. Since nothing prevents `hugo'
> from being garbage collected, this symbol may or may not exist, when
> the evaluator is called, no?

When you call the evaluator with a Scheme form that contains a
reference to a symbol, then the symbol is of course protected by this
very reference.