[Issue 11391] New: Variables can be marked pure
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Wed Oct 30 16:19:43 PDT 2013
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 at puremagic.com
ReportedBy: aliloko at gmail.com
--- Comment #0 from ponce <aliloko at 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: -------
More information about the Digitalmars-d-bugs
mailing list