DWT on Mac OS X and with DMD 2
Jacob Carlborg via Digitalmars-d-dwt
digitalmars-d-dwt at puremagic.com
Mon Mar 23 00:49:12 PDT 2015
On 2015-03-22 15:41, romain wrote:
> Hi. I think i might be interested in helping porting from d1 to d2 as
> far as the Os x version is concerned, even though i don't really know
> how i could go about that. Any pointer or help would be appreciated.
I'm not sure if that's a good idea before the Java -> D1 port is
finished. If you run in to a bug it's hard to know if it's the Java ->
D1 port or the D1 -> D2 port that caused the bug.
I got tried of the manual porting so I'm trying out a new approach to
port DWT. That is to create a tool that automatically convert the Java
code to D (2). I've created a new project JPort [1], it's written in
Scala and uses the Eclipse JDT compiler API's to translate Java to D.
It's in a very early stage.
If you really do want to port the D1 code to D2 you just need to start
rewriting the parts that has changed from D1 to D2. I'm not sure if
there's a list of changes between D1 and D2. Looking at the changelog
will give you some hints, but it might be too detailed. The "-vtls"
compiler flag will help to show which variables will be but in TLS. The
code for the OS X port is available here [2]. The readme in that
repository will have some documentation on how to port the Java code to
D that is unique to the OS X port.
[1] https://github.com/d-widget-toolkit/jport/tree/dev
[2] https://github.com/d-widget-toolkit/dwt-mac
--
/Jacob Carlborg
More information about the Digitalmars-d-dwt
mailing list