p0nce / d-idioms

"Effective D" without the haircut.
http://p0nce.github.io/d-idioms/
82 stars 17 forks source link

All destructors must handle T.init #151

Open p0nce opened 6 years ago

p0nce commented 6 years ago

A destructor should be able to handle a default-initialized object. https://forum.dlang.org/post/plr24a$2nfq$1@digitalmars.com