[gambit-list] How to pass a procedure to a nonnull-function?

Mikael mikael.rcv at gmail.com
Thu Nov 3 09:59:47 EDT 2011

Yes. The external representation is effectively an int. Btw any closure can
be passed <-> the external world under the type representation scmobj which
is effectively an int also, look it up in the manual.

I'm not clear right now if scmobj:s are persistent to GC iterations though,
if you/anyone knows please let the ml know.

2011/11/3 Vok Vojwo <ceving at gmail.com>

> 2011/11/3 Mikael <mikael.rcv at gmail.com>:
> > Make a wrapper. Use the argument value you for sure can specify to the
> > external API (a void* or alike) to pass back to you on callback, as id to
> > your internal routine.
> >
> I am not sure if I understood this correctly. Do you talk about a
> dispatching callback function which takes an continuation argument to
> execute the actual callback code?
> _______________________________________________
> Gambit-list mailing list
> Gambit-list at iro.umontreal.ca
> https://webmail.iro.umontreal.ca/mailman/listinfo/gambit-list
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://webmail.iro.umontreal.ca/pipermail/gambit-list/attachments/20111103/73362bf6/attachment.html 

More information about the Gambit-list mailing list