Kenny Tilton <email@example.com> wrote:
| Someone suggested wxWindows. Looks huge, but what do I do with the C++
| classes? We should be building a /Lisp/ GUI. I love the idea of
| leveraging existing libraries, but not where I am buying into a
| framework, I just want the display capabilities (events are easy) so the
| framework can be in Lisp (where Lisp users can get at it).
Look at how PLT Scheme, or rather, MrEd, the application- & GUI-builder
that runs under DrScheme does it. They use a slightly modified version
of wxWindows for their cross-platform (MS, Mac, Unix) GUI base, and IIRC
import the C++ classes fairly straightforwardly into MzScheme's single-
inheritance object system. See <URL:http://www.plt-scheme.org/software/mred/>
for more details.
Note that it does use MzScheme's thread system ("Lisp threads", as people
were calling it at ILC 2002, not "O/S threads"), so trying to copy what
they did directly would almost certainly need a Lisp implementation with
some kind of threads...
Rob Warnock, PP-ASEL-IA <firstname.lastname@example.org>
627 26th Avenue <URL:http://www.rpw3.org/>
San Mateo, CA 94403 (650)572-2607