With statement become like C#'s using?

Adam D. Ruppe destructionator at gmail.com
Mon Aug 5 06:33:27 PDT 2013


On Monday, 5 August 2013 at 12:40:26 UTC, Bosak wrote:
> with(Bitmap image = open("filename.bmp")) {

I think this shoudl be allowed simply for consistency with this:

if(auto a = getfoo()) { use a }


More information about the Digitalmars-d mailing list