Hi, Andy Wingo <[EMAIL PROTECTED]> writes:
> On Tue 27 Nov 2007 07:57, "Marco Maggi" <[EMAIL PROTECTED]> writes: > +A special smob type is implemented to overcome the 255 limit on the > +number of smob types. Its procedures dispatch the call to procedures > +referenced by a subsmob descriptor. > > Sounds really byzantine. The tagging system has that aspect to it, yes, > but perhaps there's a point where the complexity is too much. That was my reaction too. I don't have any clear idea on how to solve it in the short term. In the longer term, my feeling is that we could have a Scheme-level FFI (in the spirit of what Jon Wilson posted some time ago [0]) that would allow the creation of subrs (aka. "primitive procedures") at run-time through a simple API. We'd have only one "SMOB" for opaque C pointers, which bindings for C libraries would wrap in structs, records or classes to provide the required type safety. I reckon it doesn't help much in the short term, but I'm a bit wary about adding more complexity to the thing. Thanks, Ludovic. [0] http://article.gmane.org/gmane.lisp.guile.user/6062 _______________________________________________ Guile-devel mailing list [email protected] http://lists.gnu.org/mailman/listinfo/guile-devel
