www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.dwt - DWT FTW!

reply "user" <user test.com> writes:
I was pleasantly surprised to see that a small java SWT code I 
wrote compiles directly with DMD compiler & DWT lib. Only change 
I had to do was to change String to string and comment out 
printStackTrace.

This gets even better because now I can use Google's Windows 
Builder Pro to create SWT GUI code.

Probably this was deliberate by design, still thank you for all 
the hard work.

- an user
Apr 25 2013
next sibling parent "user" <user test.com> writes:
oh, forgot to mention, one more change I had to do was
public static void main --> void main.
Apr 25 2013
prev sibling parent reply Jacob Carlborg <doob me.com> writes:
On 2013-04-26 07:41, user wrote:
 I was pleasantly surprised to see that a small java SWT code I wrote
 compiles directly with DMD compiler & DWT lib. Only change I had to do
 was to change String to string and comment out printStackTrace.

 This gets even better because now I can use Google's Windows Builder Pro
 to create SWT GUI code.
I'm wondering if you can modify that to output D code directly.
 Probably this was deliberate by design, still thank you for all the hard
 work.
Cool, thanks. -- /Jacob Carlborg
Apr 25 2013
parent reply "JS" <js.mdnq gmail.com> writes:
On Friday, 26 April 2013 at 06:39:29 UTC, Jacob Carlborg wrote:
 On 2013-04-26 07:41, user wrote:
 I was pleasantly surprised to see that a small java SWT code I 
 wrote
 compiles directly with DMD compiler & DWT lib. Only change I 
 had to do
 was to change String to string and comment out printStackTrace.

 This gets even better because now I can use Google's Windows 
 Builder Pro
 to create SWT GUI code.
I'm wondering if you can modify that to output D code directly.
 Probably this was deliberate by design, still thank you for 
 all the hard
 work.
Cool, thanks.
Or possibly just write a simple post processor that makes the modifications for you?
Jun 28 2013
parent Jacob Carlborg <doob me.com> writes:
On 2013-06-29 02:20, JS wrote:

 Or possibly just write a simple post processor that makes the
 modifications for you?
We tried to automatically port SWT to D, it didn't work out that well. One basically need to port half of the Java standard library. -- /Jacob Carlborg
Jun 29 2013