This is the mail archive of the guile@sourceware.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]

gh_ interface for modules.


How about a compatibility interface that works like this?

For the gh_ calls that need an environment pointer (like gh_define ), keep the
existing API with the environment selected by a static variable. The variable
should be initialised to something usable (maybe corresponding to guile-user).
An additional call is added to set the static environment variable to an 
alternatiive value. This is obviously not going to work well if you play games
with threads and environments. But for the common case, where you just want to
define a bunch of stuff in C, often as initialisation, it would work nicely.

Julian Satchell

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