Thread overview
DWT FTW!
Apr 26, 2013
user
Apr 26, 2013
user
Apr 26, 2013
Jacob Carlborg
Jun 29, 2013
JS
Jun 29, 2013
Jacob Carlborg
April 26, 2013
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

April 26, 2013
oh, forgot to mention, one more change I had to do was
public static void main --> void main.
April 26, 2013
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
June 29, 2013
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?
June 29, 2013
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