DIP 1005 - Preliminary Review Round 1
Andrej Mitrovic via Digitalmars-d
digitalmars-d at puremagic.com
Sat Apr 22 08:16:40 PDT 2017
On Saturday, 22 April 2017 at 11:54:08 UTC, Mike Parker wrote:
> https://github.com/dlang/DIPs/blob/master/DIPs/DIP1005.md
> with (Type) and with (TemplateInstance) are always declarations
> and do not introduce a new scope.
Does that mean we can now do things like this?:
-----
module m;
struct A { struct B { } }
with (A) B b;
-----
That's a pretty cool addition.
More information about the Digitalmars-d
mailing list