3 ms·
scopebuffer's inclusion in Phobos was controversial. Many felt that its unusual design (such as lack of destructor), and ease of misuse, meant it shouldn't be t
by WalterBright 13y ago
scopebuffer's inclusion in Phobos was controversial. Many felt that its unusual design (such as lack of destructor), and ease of misuse, meant it shouldn't be there.
- srean 13y agoCan't the destructor issue be mitigated by hasElaborateDestructor( ) that biotronic pointed me to ? EDIT: To clarify, one could have two versions one with a destructor for non POD and the current one. The compiler dispatches to the appropriate one at compile time.
- WalterBright 13y agoNo, as that doesn't convert anything to POD.