FLTK native in 'D'. Would that be useful?
Carlos Santander
csantander619 at gmail.com
Mon Aug 7 10:32:41 PDT 2006
MatthiasM escribió:
>
> Hello everyone,
>
> as promised, I have put a first attempt at D-FLTK onto our Subversion
> system. The test application "hello" runs already on OS X.
>
> Everyone interested, please feel free to download, play, improve and
> comment! You can send patches to me directly. You can also join the
> general fltk newsgroup and discuss D-FLTK there (until the C++ folks
> complain about too much traffic ;-)
>
> Anyway, I hop ya'll enjoy and don't get scared by my "D" style.
>
>
> Here's how you get the source:
>
>
> svn co http://svn.easysw.com/public/fltk/fltk/branches/branch-D-1.1
> d-fltk-1.1.x
>
>
> All "D" sources are in - um - "D". The rest of the FLTK archive is
> intact to make it easy to compare "D" and "C++" code.
>
> Matthias
I gave it a try, and it worked, although I had to add "-fdeprecated" to the
Makefile compile rule (are you using gdc 0.19?)
You should add "module" lines to the std/c/osx/* files. Also, when they're
complete (if they're not already), you could ask Walter or David for inclusion
in Phobos/GPhobos.
Finally, you have code like this:
version (Apple) {
public import fl.mac;
}
version (X11) {
public import fl.x11;
}
version (Win32) {
public import fl.win32;
}
(I intentionally uncommented a couple of lines). I think it would be better if
you added "else" clauses:
version (Apple) {
public import fl.mac;
}
else version (X11) {
public import fl.x11;
}
else version (Win32) {
public import fl.win32;
}
Just in case.
Keep up this work because it's looking good.
--
Carlos Santander Bernal
More information about the Digitalmars-d-dwt
mailing list