digitalmars.D.bugs - [Issue 3606] New: Problems with struct destructors and const structs
- d-bugmail puremagic.com Dec 11 2009
- d-bugmail puremagic.com Dec 11 2009
- d-bugmail puremagic.com Dec 11 2009
http://d.puremagic.com/issues/show_bug.cgi?id=3606 Summary: Problems with struct destructors and const structs Product: D Version: 2.036 Platform: x86 OS/Version: Windows Status: NEW Severity: normal Priority: P2 Component: DMD AssignedTo: nobody puremagic.com ReportedBy: webby beardmouse.org.uk --- Comment #0 from Richard Webb <webby beardmouse.org.uk> 2009-12-11 05:44:37 PST --- Using DMD 2.037, trying to compile the code: //////////////////////////////// struct Foo { ~this() { } } void Bar() { const Foo f; } //////////////////////////////// Fails with the error: Error: destructor Foo.~this () is not callable using argument types () Which seems a bit strange. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Dec 11 2009
http://d.puremagic.com/issues/show_bug.cgi?id=3606 --- Comment #1 from Sobirari Muhomori <dfj1esp02 sneakemail.com> 2009-12-11 07:05:10 PST --- Errors in 2.031: Error: destructor tmp.Foo.~this () does not match parameter types () Error: f.~this can only be called on a mutable object, not const(Foo) -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Dec 11 2009
http://d.puremagic.com/issues/show_bug.cgi?id=3606 --- Comment #2 from Sobirari Muhomori <dfj1esp02 sneakemail.com> 2009-12-11 07:08:40 PST --- Well... compiler's complaints are understandable, you are trying to do meaningless thing. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Dec 11 2009









d-bugmail puremagic.com 