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: Guile-C interfacing and defating garbage collection


Richard Frith-Macdonald <richard@brainstorm.co.uk> writes:

> 1. Guile passes a SCM representing a procedure to some C library code which
> stores it somewhere.

If you're going to produce many instances of some data structure
containg scheme objects you should use smob's.

See the the section "Defining Smobs" in the manual to SCM:
http://www-swiss.ai.mit.edu/~jaffer/SCM.html, but append `scm_' to
function and type names (and check their definition in the Guile
source as a safe-guard!).

/mdj