On Sat, 2008-01-19 at 17:25 +1300, Allison Randal wrote:
> Geoffrey Broadwell wrote:
> > On Wed, 2008-01-16 at 22:38 -0700, Paul Seamons wrote:
> >>> I am starting to implement a GLUT and OpenGL binding for Parrot.
> [...]
> > I don't often get concentrated time
> > to help out with Parrot and Perl 6, but I have some now.  If this is
> > going to be blocked indefinitely, my tuits are likely to evaporate.  And
> > dangit, I don't want to miss out on my window of opportunity!
> 
> It's true that the generalized solution for varying callback signatures 
> doesn't exist yet, but it's easy enough to create your own C callback 
> layer, with a separate C function for each callback you need. (Note, not 
> one-per-signature, but one-per-callback.) The callback functions can 
> invoke a Parrot sub that they lookup by name, register a callback sub 
> with the concurrency scheduler, or simply directly perform the actions 
> needed.

Barring some better option coming up in the mean time, I will probably
end up doing this.  At the very least, I'll get more exposure to
Parrot's guts this way.

Still, I'll also file an RT ticket asking for the general solution under
the "twice requested" rule.  I'll reference this thread, Paul's old
thread, and our IRC conversation in the ticket.


-'f


Reply via email to