October 30, 2013 [Issue 11391] New: Variables can be marked pure | ||||
---|---|---|---|---|
| ||||
http://d.puremagic.com/issues/show_bug.cgi?id=11391 Summary: Variables can be marked pure Product: D Version: D2 Platform: All OS/Version: All Status: NEW Severity: minor Priority: P2 Component: DMD AssignedTo: nobody@puremagic.com ReportedBy: aliloko@gmail.com --- Comment #0 from ponce <aliloko@gmail.com> 2013-10-30 16:19:42 PDT --- Don't know if intended, but I find it strange that variables can be annotated as "pure". In a similar way, variables can be annotated as @system/@trusted/@safe and nothrow . --------- Example ---------- import std.stdio; void main() { pure nothrow @safe int a = 4; writefln("%s", a); a = 2; writefln("%s", a); } ---------------------------- -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
October 30, 2013 [Issue 11391] Variables can be marked pure | ||||
---|---|---|---|---|
| ||||
Posted in reply to ponce | http://d.puremagic.com/issues/show_bug.cgi?id=11391 safety0ff.bugz <safety0ff.bugz@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |safety0ff.bugz@gmail.com Resolution| |DUPLICATE --- Comment #1 from safety0ff.bugz <safety0ff.bugz@gmail.com> 2013-10-30 16:23:17 PDT --- *** This issue has been marked as a duplicate of issue 7432 *** -- 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