about "with statement"

Denis Shelomovskij verylonglogin.reg at gmail.com
Mon Jun 10 06:30:36 PDT 2013


09.06.2013 14:11, khurshid пишет:
> D language have like Pascal/Delphi  "with statement",  which very useful
> for writing readable code.
>
> http://dlang.org/statement.html#WithStatement
>
> Maybe I'm wrong, but, I never saw  where using this statement in phobos
> source codes, what problem using this statement?

Note, that for now you can't instantiate templates in with statement, 
see Issue 6196 [1].

[1] http://d.puremagic.com/issues/show_bug.cgi?id=6196

-- 
Денис В. Шеломовский
Denis V. Shelomovskij


More information about the Digitalmars-d mailing list