[Issue 1893] New: Allow delete to work on non-lvalues
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Wed Mar 5 04:51:00 PST 2008
http://d.puremagic.com/issues/show_bug.cgi?id=1893
Summary: Allow delete to work on non-lvalues
Product: D
Version: 2.011
Platform: PC
OS/Version: Windows
Status: NEW
Keywords: spec
Severity: enhancement
Priority: P2
Component: DMD
AssignedTo: bugzilla at digitalmars.com
ReportedBy: brunodomedeiros+bugz at gmail.com
The following simplified use case fails:
delete new Object();
because delete only works on lvalues (in order to set them to null). However,
delete'ing non-lvalues is a perfectly valid use case, and should be allowed as
well.
--
More information about the Digitalmars-d-bugs
mailing list