Thread overview | |||||
---|---|---|---|---|---|
|
October 24, 2010 [Issue 5111] New: Static function-level variables are not in the language spec. | ||||
---|---|---|---|---|
| ||||
http://d.puremagic.com/issues/show_bug.cgi?id=5111 Summary: Static function-level variables are not in the language spec. Product: D Version: unspecified Platform: Other OS/Version: Other Status: NEW Severity: normal Priority: P2 Component: websites AssignedTo: nobody@puremagic.com ReportedBy: peter.alexander.au@gmail.com --- Comment #0 from Peter Alexander <peter.alexander.au@gmail.com> 2010-10-24 03:46:32 PDT --- The language specification makes no reference to function-level static variables (other than in the grammar production rules). Static member variables and functions are mentioned in the "Attributes" page. That page should (at a minimum) specify that: - Local variables with the static storage class have a lifetime that extends beyond the function call. - It should mention when and how they are initialised (before main, or at first use?). - It should clarify whether statics with the same name, but different block scopes are allowed. i.e. void main() { { static int x; } { static int x; } // allowed? } -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
January 20, 2012 [Issue 5111] Static function-level variables are not in the language spec. | ||||
---|---|---|---|---|
| ||||
Posted in reply to Peter Alexander | http://d.puremagic.com/issues/show_bug.cgi?id=5111 Walter Bright <bugzilla@digitalmars.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |bugzilla@digitalmars.com --- Comment #1 from Walter Bright <bugzilla@digitalmars.com> 2012-01-20 00:20:16 PST --- Fixed in function.html -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
January 20, 2012 [Issue 5111] Static function-level variables are not in the language spec. | ||||
---|---|---|---|---|
| ||||
Posted in reply to Peter Alexander | http://d.puremagic.com/issues/show_bug.cgi?id=5111 Walter Bright <bugzilla@digitalmars.com> 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