Thread overview | |||||||
---|---|---|---|---|---|---|---|
|
April 26, 2013 DWT FTW! | ||||
---|---|---|---|---|
| ||||
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 Re: DWT FTW! | ||||
---|---|---|---|---|
| ||||
Posted in reply to user | oh, forgot to mention, one more change I had to do was public static void main --> void main. |
April 26, 2013 Re: DWT FTW! | ||||
---|---|---|---|---|
| ||||
Posted in reply to user | 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 Re: DWT FTW! | ||||
---|---|---|---|---|
| ||||
Posted in reply to Jacob Carlborg | 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 Re: DWT FTW! | ||||
---|---|---|---|---|
| ||||
Posted in reply to JS | 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 |
Copyright © 1999-2021 by the D Language Foundation