[Issue 4935] std.bitmanip: bitfields!() template with trailing unnamed field does not work
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Fri Sep 24 15:38:57 PDT 2010
http://d.puremagic.com/issues/show_bug.cgi?id=4935
Mitch Hayenga <mitch.hayenga at gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |mitch.hayenga at gmail.com
--- Comment #1 from Mitch Hayenga <mitch.hayenga at gmail.com> 2010-09-24 15:38:13 PDT ---
Ahh, I hit this myself a few days ago. My fields are now named "ignore1",
"ignroe2", etc. I thought it was maybe my mistake because I was trying to do
something like...
struct Instruction{
union{
mixin(bitfields!(
ubyte, "imm", 4,
ubyte, "rot", 4,
ubyte, "", 4,
ubyte, "opcode", 4));
// Read the bottom 8 bits as a longer immediate
mixin(bitfields!(
ubyte, "imm8", 8,
ubyte, "", 8));
}
}
And was unsure about bitfields support within union type structures.
--
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