[Issue 12081] New: Warn against, and then deprecate class allocators
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Wed Feb 5 04:11:43 PST 2014
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 at puremagic.com
ReportedBy: bearophile_hugs at eml.cc
--- Comment #0 from bearophile_hugs at 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: -------
More information about the Digitalmars-d-bugs
mailing list