On Monday 31 October 2005 03:57, felix winkelmann wrote: > > Now, the real question: How do I access XEvent's members and XEvent's > > members' members ? > > You might also look into `define-foreign-record'. > The xlib egg uses accessor-procedures for each and every > structure member, which is ok, too (define-foreign-record does > essentially the same).
Does define-foreign-record work for unions as well ? Now, having tried a couple of approaches to this (as Schemish as possible), I am thinking of tring a different one. What about making my own C function, let's call it ChXNextEvent that call XNextEvent and extracts the info from the XEvent and initializes a Scheme native structure or record ? Is that possible ? Is it a good way ? Any hints ? Thank you. -- Pupeno <[EMAIL PROTECTED]> (http://pupeno.com)
pgpj4fiTDd7F9.pgp
Description: PGP signature
_______________________________________________ Chicken-users mailing list [email protected] http://lists.nongnu.org/mailman/listinfo/chicken-users
