Re: callbacks in nlffi
John Reppy <[email protected]>
| Newsgroups | gmane.comp.lang.sml.smlnj |
|---|---|
| Message-ID | <[email protected]> |
I don't think that the mechanisms used by nlffigen can support callbacks w/o significant work, but the runtime system's FI could probably support it with not too much effort. Once the GLUT callbacks were supported, one can use nlffi for the non-callback OpenGL and GLUT calls. - John On Jun 3, 2006, at 9:56 AM, brian wrote: > Anyway to hack this in, or am I stuck until it gets placed into > nlffi ? > > Brian > > On Jun 3, 2006, at 6:41 AM, John Reppy wrote: > >> No, but it should. Actually, the problem is that the SML/NJ runtime >> doesn't provide callback support yet. I'm hoping that this problem >> will be fixed over the summer. >> >> - John >> >> On Jun 3, 2006, at 12:44 AM, brian wrote: >> >>> I'm attempting to create a binding to nlffi for Glut. >>> >>> Can nlffi support callbacks ? >>> >>> I looked at the declaration of glutReshapeFunc and it looks like I >>> should be able to create an ML functions for the callback. >>> >>> >>> >>> Thanks >>> >>> Brian >>> >>> >>> >>> _______________________________________________ >>> Smlnj-list mailing list >>> [email protected] >>> https://lists.sourceforge.net/lists/listinfo/smlnj-list >>> > >