www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 11905] New: Can't make enum of custom struct types autoincrement working

reply d-bugmail puremagic.com writes:
https://d.puremagic.com/issues/show_bug.cgi?id=11905

           Summary: Can't make enum of custom struct types autoincrement
                    working
           Product: D
           Version: unspecified
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nobody puremagic.com
        ReportedBy: czdanol gmail.com



---
http://pastebin.com/cnKy8LGK

Such thing causes "Error: no property 'max' for type 'enumf!ushort'" error (no
error line or anything).
I have tried implementing my own max using enum, static immutable variable,
 property function and static  property function, either one does not work
(throws "Error: no property 'max' for type 'enumf!ushort', did you mean
'max'?").

-- 
Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Jan 11 2014
parent d-bugmail puremagic.com writes:
https://d.puremagic.com/issues/show_bug.cgi?id=11905




---
CyberShadow has made a patch that should fix this:
http://dump.thecybershadow.net/88e4ac8353cebe100f9379da688829e0/opt-max-check.patch

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