[Issue 5520] New: bitfieldsOn

d-bugmail at puremagic.com d-bugmail at puremagic.com
Wed Feb 2 17:56:39 PST 2011


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

           Summary: bitfieldsOn
           Product: D
           Version: D2
          Platform: Other
        OS/Version: Linux
            Status: NEW
          Severity: enhancement
          Priority: P2
         Component: Phobos
        AssignedTo: nobody at puremagic.com
        ReportedBy: ellery-newcomer at utulsa.edu


--- Comment #0 from Ellery Newcomer <ellery-newcomer at utulsa.edu> 2011-02-02 17:54:23 PST ---
I think it would be nice to have a variation of bitfields which generates
operations on a preexisting field, e.g.

struct Z{
 Foobar f;
 mixin(bitfieldsOn!("f.squirt.honk"
                    bool, "buzz",1,
                    uint, "fuzz",7,
 ));
}

-- 
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