struct: default construction or lazy initialization.

bitwise via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Tue Jan 31 16:53:30 PST 2017


C#'s "Dispose" pattern comes to mind here.

You don't leak memory, you just leak file handles and graphics 
resources instead when you forget to explicitly call Dispose().



More information about the Digitalmars-d-learn mailing list