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: Marking smobs for GC


James Dean Palmer <james@tiger-marmalade.com> writes:

> Thanks for all the information, guys!  Hopefully, I'll have some code
> available for critiqueing in the near future.
> 
> Greg Harvey <Greg.Harvey@thezone.net> writes:
> 
> > be a little involved ;). It might be possible to classify the common
> > problems that come up, but it's probably just as well to provide a few
> > examples of how to do it with currently existing facilities,
> > especially since we now have guardians.
> 
> Guardians aren't a feature of the 1.3 release of guile, are they?

They went in just after the 1.3 release. They are in the cvs
tree (which right now isn't worryingly experimental ;).
 
> Also, no one answered my question about what are valid patterns for
> required and optional arguments.  Is this a scheme issue or a guile
> implementation issue?

Guile implementation. Actually, you can have pretty much any pattern
of args you want (up to req+opt+rest <= 10, if I'm reading the code
right), but only a small set of those have a predefined tag, like
scm_tc7_subr_2. Anything else will be represented by a cclo (see
gsubr.c:scm_make_gsubr). I think. Take this with a grain of salt, since
I haven't really looked at the code for more than a few minutes.

-- 
Greg