July 25, 2011 [Issue 6378] New: Overriding opAssign disables ability to null a reference | ||||
---|---|---|---|---|
| ||||
http://d.puremagic.com/issues/show_bug.cgi?id=6378 Summary: Overriding opAssign disables ability to null a reference Product: D Version: D2 Platform: Other OS/Version: Windows Status: NEW Severity: normal Priority: P2 Component: DMD AssignedTo: nobody@puremagic.com ReportedBy: andrej.mitrovich@gmail.com --- Comment #0 from Andrej Mitrovic <andrej.mitrovich@gmail.com> 2011-07-25 07:35:28 PDT --- class Foo { void opAssign(int bar) { } } void main() { auto foo = new Foo; foo = null; } test.d(11): Error: function test.Foo.opAssign (int bar) is not callable using argument types (void*) test.d(11): Error: cannot implicitly convert expression (null) of type void* to int -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
October 04, 2011 [Issue 6378] Overriding opAssign disables ability to null a reference | ||||
---|---|---|---|---|
| ||||
Posted in reply to Andrej Mitrovic | http://d.puremagic.com/issues/show_bug.cgi?id=6378 Kenji Hara <k.hara.pg@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |DUPLICATE --- Comment #1 from Kenji Hara <k.hara.pg@gmail.com> 2011-10-04 13:22:11 PDT --- *** This issue has been marked as a duplicate of issue 6630 *** -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
Copyright © 1999-2021 by the D Language Foundation