Necessities for Adoption of D

Vladimir Panteleev thecybershadow at gmail.com
Sun Feb 10 07:21:40 PST 2008


On Sun, 10 Feb 2008 14:47:00 +0200, bearophile <bearophileHUGS at lycos.com> wrote:

> Wax was developed for Python, that has named arguments too, so that Python code may look like:
> 
> tb = TextBox(parent, size=(400, 200), multiline=1, readonly=0, wrap=1, justify='left')

D isn't too far off with "with" statements. Example DFL code:
with(tb = new TextBox) { bounds = Rect(100, 100, 200, 200); multiline = true; readOnly = false; wordWrap = true; parent = this; }

And with the new full closures, you can implement event handlers inline, too.

-- 
Best regards,
 Vladimir                          mailto:thecybershadow at gmail.com



More information about the Digitalmars-d mailing list