Thread overview | |||||
---|---|---|---|---|---|
|
December 31, 2014 [Issue 13904] calls to mutable methods are just ignored when instance is an enum | ||||
---|---|---|---|---|
| ||||
https://issues.dlang.org/show_bug.cgi?id=13904 --- Comment #1 from Andrej Mitrovic <andrej.mitrovich@gmail.com> --- *** Issue 13905 has been marked as a duplicate of this issue. *** -- |
June 09, 2015 [Issue 13904] calls to mutable methods are just ignored when instance is an enum | ||||
---|---|---|---|---|
| ||||
https://issues.dlang.org/show_bug.cgi?id=13904 Andrei Alexandrescu <andrei@erdani.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Version|unspecified |D2 -- |
May 11, 2017 [Issue 13904] calls to mutable methods are just ignored when instance is an enum | ||||
---|---|---|---|---|
| ||||
https://issues.dlang.org/show_bug.cgi?id=13904 Walter Bright <bugzilla@digitalmars.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |bugzilla@digitalmars.com Resolution|--- |INVALID --- Comment #2 from Walter Bright <bugzilla@digitalmars.com> --- This is actually not a bug. enum S x = S(10); x.setValue(20); is rewritten to be: S(10).setValue(20); which is then rewritten to be: auto tmp = S(10); tmp.setValue(20); which works as expected. -- |
Copyright © 1999-2021 by the D Language Foundation