This is the mail archive of the guile@sources.redhat.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: call a C-routine as a Scheme function?


jimb@savonarola.red-bean.com writes:
> 
> > One of the (few) advantages of C++ is the existence of global
> > constructors. I never use snarfing, because I think that the scripts
> > are an additional point of failure.
> 
> Sure --- but don't the constructors run before you've actually
> initialized Guile?  Doesn't sound good to me.

You use the ctors to register Scheme init functions. The functions
themselves are called after the GUILE initialization.

> 

-- 

Han-Wen Nienhuys   |   hanwen@cs.uu.nl    | http://www.cs.uu.nl/~hanwen/


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