http://d.puremagic.com/issues/show_bug.cgi?id=7432

           Summary: dmd allows pure variables and treats pure like auto
           Product: D
           Version: unspecified
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: [email protected]
        ReportedBy: [email protected]


--- Comment #0 from Jonathan M Davis <[email protected]> 2012-02-03 14:58:27 
PST ---
This compiles:

void main()
{
    pure foo = "hello";
}

It should be illegal. Variables can't be pure. Even worse, pure here is treated
as if it were auto.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------

Reply via email to