about "with statement"

Anthony Goins neontotem at gmail.com
Mon Jun 10 06:33:44 PDT 2013


On Sunday, 9 June 2013 at 10:11:25 UTC, khurshid wrote:
> 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?
>
> Regards,
> Khurshid.

Am I the only one that found this useful?
Is there a better way?

with (specificModule)
{
     result = ufcsChain.ambiguousFunction.link3();
}


More information about the Digitalmars-d mailing list