On Thu 16 Aug 2012 15:51, [email protected] (Ludovic Courtès) writes:
>> and if so, does Guile 1.8.7 do exactly the same as Guile 2.06?
>
> Yes, but unfortunately, ‘scm_module_variable’ didn’t exist in Guile
> 1.8. So you’ll have to #ifdef to use one or the other.
Better to just define scm_module_variable in guile 1.8:
#if defined (SCM_MAJOR_VERSION) && (SCM_MAJOR_VERSION < 2)
SCM
scm_module_variable (SCM module, SCM sym)
{
return scm_sym2var (sym, scm_module_lookup_closure (module), SCM_BOOL_F);
}
#endif
Cheers,
Andy
--
http://wingolog.org/