February 05, 2014 [Issue 12081] New: Warn against, and then deprecate class allocators | ||||
---|---|---|---|---|
| ||||
https://d.puremagic.com/issues/show_bug.cgi?id=12081 Summary: Warn against, and then deprecate class allocators Product: D Version: D2 Platform: All OS/Version: All Status: NEW Keywords: diagnostic Severity: normal Priority: P2 Component: DMD AssignedTo: nobody@puremagic.com ReportedBy: bearophile_hugs@eml.cc --- Comment #0 from bearophile_hugs@eml.cc 2014-02-05 04:11:40 PST --- According to the docs class allocators are deprecated: http://dlang.org/class.html#allocators But this code gives no warnings nor deprecation errors, that I suggest to introduce: class Foo { new(size_t sz) { return null; } delete(void* p) {} } void main() {} -- Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
Copyright © 1999-2021 by the D Language Foundation