Does D have any construct like Python's with keyword?

pineapple via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Fri Aug 26 17:04:47 PDT 2016


I would just love if I could express this as something more like


     context(auto file = File("some_file.txt")){
         file.write();
     }



More information about the Digitalmars-d-learn mailing list