Thread overview | |||||
---|---|---|---|---|---|
|
June 15, 2011 [Issue 6162] New: Remove "invariant" as alias for "immutable" | ||||
---|---|---|---|---|
| ||||
http://d.puremagic.com/issues/show_bug.cgi?id=6162 Summary: Remove "invariant" as alias for "immutable" Product: D Version: D2 Platform: All OS/Version: All Status: NEW Severity: enhancement Priority: P2 Component: DMD AssignedTo: nobody@puremagic.com ReportedBy: bearophile_hugs@eml.cc --- Comment #0 from bearophile_hugs@eml.cc 2011-06-15 13:37:33 PDT --- In DMD 2.053 this code compiles with no errors, because "invariant" is an alias for "immutable" still: void main() { invariant x = 10; } But I suggest to remove this alias soon because it causes me some troubles regarding Class/struct/enum invariants. DMD v2.053 compiles this with no errors: struct Foo { invariant {} } struct Bar { invariant } class CFoo { invariant {} } class CBar { invariant } void main() {} See bug 4325 for more info. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
December 12, 2011 [Issue 6162] Remove "invariant" as alias for "immutable" | ||||
---|---|---|---|---|
| ||||
Posted in reply to bearophile_hugs@eml.cc | http://d.puremagic.com/issues/show_bug.cgi?id=6162 --- Comment #1 from Kenji Hara <k.hara.pg@gmail.com> 2011-12-12 02:45:10 PST --- In 2.057, Using 'invariant' keyword as a storage class has been deprecated. https://github.com/D-Programming-Language/dmd/pull/477 https://github.com/D-Programming-Language/dmd/commit/67411b9968e5454026ea3552e1228d05245859c8 -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
December 12, 2011 [Issue 6162] Remove "invariant" as alias for "immutable" | ||||
---|---|---|---|---|
| ||||
Posted in reply to bearophile_hugs@eml.cc | http://d.puremagic.com/issues/show_bug.cgi?id=6162 bearophile_hugs@eml.cc changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED -- 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