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

           Summary: std.system.endian for pure functions?
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: enhancement
          Priority: P2
         Component: DMD
        AssignedTo: nob...@puremagic.com
        ReportedBy: bearophile_h...@eml.cc


--- Comment #0 from bearophile_h...@eml.cc 2011-02-05 06:09:40 PST ---
This little D2 program:


import std.system: endian;
pure void main() {
    auto e = endian;
}


DMD 2.051 shows the errors:
test.d(3): Error: pure function 'main' cannot access mutable static data
'endian'
test.d(3): Error: pure function 'main' cannot access mutable static data
'endian'

Like __ctfe, I'd like to use std.system.endian in pure functions too.

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

Reply via email to