Bug 16187 – std.bitmanip fields should be lvalues

Status
NEW
Severity
enhancement
Priority
P4
Component
phobos
Product
D
Version
D2
Platform
All
OS
All
Creation time
2016-06-20T22:30:10Z
Last change time
2024-12-01T16:27:15Z
Assigned to
No Owner
Creator
Seb
Depends on
8006
See also
https://issues.dlang.org/show_bug.cgi?id=8006
Moved to GitHub: phobos#9687 →

Comments

Comment #0 by greensunny12 — 2016-06-20T22:30:10Z
Consider this example: import std.bitmanip : bitfields; struct BitVector { mixin(bitfields!(uint, "x", 8)); } BitVector vec; vec.x = 2; // OK vec.x += 2; // ERROR: vec.x isn't a lvalue What was/is blocking such fields to be lvalues?
Comment #1 by slavo5150 — 2017-08-14T07:45:31Z
Comment #2 by robert.schadek — 2024-12-01T16:27:15Z
THIS ISSUE HAS BEEN MOVED TO GITHUB https://github.com/dlang/phobos/issues/9687 DO NOT COMMENT HERE ANYMORE, NOBODY WILL SEE IT, THIS ISSUE HAS BEEN MOVED TO GITHUB