I learned something new in D this week! (anonymous class rundown)
Adam D. Ruppe
destructionator at gmail.com
Fri Feb 19 18:01:49 UTC 2021
On Friday, 19 February 2021 at 17:41:51 UTC, Patrick Schluter
wrote:
> DWT users knew about anonymous classes as they are used a lot
> there. Of course as SWT is a Java based library, D had to had
> the features to ease the porting.
Aye, my understanding is actually they were added to do
specifically at the request of the DWT porters.
Did you know about the constructor args though? That's what was
new to me, I always thought you had to do a zero-arg constructor
in the anonymous class (which works 99% of the time anyway.)
More information about the Digitalmars-d-announce
mailing list