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().
Re: struct: default construction or lazy initialization.
bitwise via Digitalmars-d-learn Tue, 31 Jan 2017 16:56:47 -0800
- struct: default construction or lazy... bitwise via Digitalmars-d-learn
- Re: struct: default constructio... Ali Çehreli via Digitalmars-d-learn
- Re: struct: default constru... bitwise via Digitalmars-d-learn
- Re: struct: default con... bitwise via Digitalmars-d-learn
- Re: struct: default con... Adam D. Ruppe via Digitalmars-d-learn
- Re: struct: default... bitwise via Digitalmars-d-learn
- Re: struct: de... kinke via Digitalmars-d-learn
- Re: struct... bitwise via Digitalmars-d-learn
- Re: st... kinke via Digitalmars-d-learn