[Issue 4935] std.bitmanip: bitfields!() template with trailing unnamed field does not work

2010-09-24 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=4935


Mitch Hayenga  changed:

   What|Removed |Added

 CC||mitch.haye...@gmail.com


--- Comment #1 from Mitch Hayenga  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

2010-09-24 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=4935



--- Comment #2 from Austin Hastings  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

2010-09-24 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=4935


Andrei Alexandrescu  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: ---


[Issue 4935] std.bitmanip: bitfields!() template with trailing unnamed field does not work

2012-08-01 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=4935


Era Scarecrow  changed:

   What|Removed |Added

 CC||rtcv...@yahoo.com


--- Comment #3 from Era Scarecrow  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

2013-02-26 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=4935



--- Comment #4 from Andrei Alexandrescu  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

2013-10-05 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=4935


safety0ff.bugz  changed:

   What|Removed |Added

 CC||safety0ff.b...@gmail.com


--- Comment #5 from safety0ff.bugz  2013-10-05 
09:26:00 PDT ---
(In reply to comment #4)
> @Era: what pull are you referring to?

He seems to have been referring to pull requests: 1045, 719, 734 and 740 (all
closed unmerged.)

This seems to have been fixed prior to 2.060, I'll end up writing a unittest to
make sure it stays that way.

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

2020-03-20 Thread d-bugmail--- via Digitalmars-d-bugs
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

2015-11-27 Thread via Digitalmars-d-bugs
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

--