[Issue 17265] WithStatement: Find better Example for what "with" really does

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sun Dec 10 16:09:32 UTC 2017


https://issues.dlang.org/show_bug.cgi?id=17265

--- Comment #5 from Stefan <kdevel at vogtner.de> ---
Proposal:

"with (expression)
{
    ...
    ident;
}

is semantically equivalent to: 

{
    auto ptr = &expression;
    ...
    ptr.ident;
}"

--


More information about the Digitalmars-d-bugs mailing list