[Issue 4935] std.bitmanip: bitfields!() template with trailing unnamed field does not work
https://issues.dlang.org/show_bug.cgi?id=4935 Basile-z changed: What|Removed |Added CC|b2.t...@gmx.com | --
[Issue 4935] std.bitmanip: bitfields!() template with trailing unnamed field does not work
https://issues.dlang.org/show_bug.cgi?id=4935 bb.t...@gmx.com changed: What|Removed |Added Status|ASSIGNED|RESOLVED CC||bb.t...@gmx.com Resolution|--- |FIXED --
[Issue 4935] std.bitmanip: bitfields!() template with trailing unnamed field does not work
http://d.puremagic.com/issues/show_bug.cgi?id=4935 --- Comment #4 from Andrei Alexandrescu and...@erdani.com 2013-02-26 09:06:09 PST --- @Era: what pull are you referring to? -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email --- You are receiving this mail because: ---
[Issue 4935] std.bitmanip: bitfields!() template with trailing unnamed field does not work
http://d.puremagic.com/issues/show_bug.cgi?id=4935 Era Scarecrow rtcv...@yahoo.com changed: What|Removed |Added CC||rtcv...@yahoo.com --- Comment #3 from Era Scarecrow rtcv...@yahoo.com 2012-08-01 07:58:42 PDT --- I was unable to duplicate this problem, so either DMD already fixed some bug, or my patches already fixed it. And was unsure about bitfields support within union type structures. Inside a union it should be fine, as only one variable is made that's accessible (although enums are present). If those give you trouble, you can use bitfieldsOn (in my branch) to specify a specific variable elsewhere that you want to use for your source. Once the pull is accepted I'm changing this status to resolved. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email --- You are receiving this mail because: ---
[Issue 4935] std.bitmanip: bitfields!() template with trailing unnamed field does not work
http://d.puremagic.com/issues/show_bug.cgi?id=4935 Mitch Hayenga mitch.haye...@gmail.com changed: What|Removed |Added CC||mitch.haye...@gmail.com --- Comment #1 from Mitch Hayenga mitch.haye...@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: ---
[Issue 4935] std.bitmanip: bitfields!() template with trailing unnamed field does not work
http://d.puremagic.com/issues/show_bug.cgi?id=4935 --- Comment #2 from Austin Hastings ah0801...@yahoo.com 2010-09-24 18:01:07 PDT --- Entertainingly, this is the real code I was trying to work on: union Instruction { ushort raw; // Basic opcode + data mixin(bitfields!( Opcode, opcode, 7, uint, rest, 9)); Is it only people working with opcodes that want to use bitfields? :) Also, I think I'm going to request that repeated bitfield definitions be allowed if they are identical - I'd like to redeclare opcode rather than . -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email --- You are receiving this mail because: ---
[Issue 4935] std.bitmanip: bitfields!() template with trailing unnamed field does not work
http://d.puremagic.com/issues/show_bug.cgi?id=4935 Andrei Alexandrescu and...@metalanguage.com changed: What|Removed |Added Status|NEW |ASSIGNED CC||and...@metalanguage.com AssignedTo|nob...@puremagic.com|and...@metalanguage.com -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email --- You are receiving this mail because: ---