This is the mail archive of the
guile@cygnus.com
mailing list for the Guile project.
Re: Smob documentation
Jost Boekemeier <jostobfe@calvados.zrz.TU-Berlin.DE> writes:
> Hmm, that means that the following should work also:
>
>
> [...]
> {
> SCM memoized = scm_make_doubly_weak_hash_table(...);
> eval_environment->memoized = memoized;
> eval_environment_smob = scm_make_environment(eval_environment);
> }
> return eval_environment_smob;
> }
This is dangerous since the compiler may be smart and realize that it
can throw away `memoized' after the first line..., in fact, gcc will
very likely throw it away.