I was at the conference yesterday and there was an interesting presentation about how to create a Lispy interface to foreign libraries:
http://lisp-ecoop06.bknr.net/pdf/92988 Maybe we should use the class-concept for mapping SDL surfaces. Now that CFFI provides a callback when the GC is called for releasing the native Surface object, you don't have to release the surfaces yourself anymore (but the with-macros are still useful, because surfaces could be large and would be a good idea to release it, if you need it only within one code-block). I've discussed with the author, Rudi Schlatte, and currently they are using SWIG for creating the initial bindings, but for things like defining which objects needs to be destroyed, they do it by hand after generating it. Maybe we can work together to enhance our SWIG definition files with annotations to generate this automaticly. -- Frank Buss, [EMAIL PROTECTED] http://www.frank-buss.de, http://www.it4-systems.de _______________________________________________ application-builder mailing list [email protected] http://www.lispniks.com/mailman/listinfo/application-builder
