with (auto p = new ...)

Meta via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Tue Sep 23 14:23:31 PDT 2014


I think this is just a language oversight. It's allowed in if 
statements, and people have made a good case for allowing it for 
switch statements. It just hasn't been implemented. I made an 
attempt one evening to implement it for switch statements,  but 
I'm not at all familiar with DMD, so I put it on the back burner 
for the time being.


More information about the Digitalmars-d-learn mailing list