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

pineapple via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Fri Aug 26 16:28:27 PDT 2016


I've grown to very much appreciate how context initialization and 
teardown can be very conveniently handled using `with` in Python. 
Is there any clean way to imitate this syntax in D?


More information about the Digitalmars-d-learn mailing list