Thread overview | |||||||
---|---|---|---|---|---|---|---|
|
December 11, 2009 [Issue 3606] New: Problems with struct destructors and const structs | ||||
---|---|---|---|---|
| ||||
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: ------- |
December 11, 2009 [Issue 3606] Problems with struct destructors and const structs | ||||
---|---|---|---|---|
| ||||
Posted in reply to Richard Webb | 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: ------- |
December 11, 2009 [Issue 3606] Problems with struct destructors and const structs | ||||
---|---|---|---|---|
| ||||
Posted in reply to Richard Webb | 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: ------- |
June 12, 2011 [Issue 3606] Problems with struct destructors and const structs | ||||
---|---|---|---|---|
| ||||
Posted in reply to Richard Webb | http://d.puremagic.com/issues/show_bug.cgi?id=3606 yebblies <yebblies@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |yebblies@gmail.com Resolution| |FIXED --- Comment #3 from yebblies <yebblies@gmail.com> 2011-06-12 15:54:43 PDT --- The code now compiles. (dmd2.053) -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
June 21, 2011 [Issue 3606] Problems with struct destructors and const structs | ||||
---|---|---|---|---|
| ||||
Posted in reply to Richard Webb | http://d.puremagic.com/issues/show_bug.cgi?id=3606 Kenji Hara <k.hara.pg@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |k.hara.pg@gmail.com Resolution|FIXED |DUPLICATE --- Comment #4 from Kenji Hara <k.hara.pg@gmail.com> 2011-06-21 06:34:18 PDT --- I think this issue was 'temporary' fixed, not resolved. See my comment: http://d.puremagic.com/issues/show_bug.cgi?id=4338#c3 *** This issue has been marked as a duplicate of issue 4338 *** -- 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