Thread overview | |||||
---|---|---|---|---|---|
|
December 07, 2009 [Issue 3598] New: Static functions in immutable structs/classes needed | ||||
---|---|---|---|---|
| ||||
http://d.puremagic.com/issues/show_bug.cgi?id=3598 Summary: Static functions in immutable structs/classes needed Product: D Version: 2.036 Platform: x86 OS/Version: Windows Status: NEW Severity: normal Priority: P2 Component: DMD AssignedTo: nobody@puremagic.com ReportedBy: tomeksowi@gmail.com --- Comment #0 from Tomasz Sowiński <tomeksowi@gmail.com> 2009-12-07 14:28:59 PST --- Currently immutable types can't have static functions and I believe this impediment is a bug: immutable struct Strukt { static void funkcja() { } } Should compile but fails with message: function test.Strukt.funkcja without 'this' cannot be const/immutable -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
December 09, 2009 [Issue 3598] Static functions in immutable structs/classes needed | ||||
---|---|---|---|---|
| ||||
Posted in reply to Tomasz Sowiński | http://d.puremagic.com/issues/show_bug.cgi?id=3598 --- Comment #1 from Tomasz Sowiński <tomeksowi@gmail.com> 2009-12-09 11:22:11 PST --- I heard the bug is not clear about what should we do, so I'll restate: Currently everything inside an immutable struct/class is tagged with "immutable". I say, tag everything but static functions. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
December 05, 2010 [Issue 3598] Static functions in immutable structs/classes needed | ||||
---|---|---|---|---|
| ||||
Posted in reply to Tomasz Sowiński | http://d.puremagic.com/issues/show_bug.cgi?id=3598 Walter Bright <bugzilla@digitalmars.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |bugzilla@digitalmars.com Resolution| |DUPLICATE --- Comment #2 from Walter Bright <bugzilla@digitalmars.com> 2010-12-05 13:00:04 PST --- *** This issue has been marked as a duplicate of issue 5110 *** -- 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