Bug 20075 – allow cast(ref T)lvalue for casting lvalues

Status
RESOLVED
Resolution
DUPLICATE
Severity
enhancement
Priority
P4
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2019-07-23T05:58:23Z
Last change time
2024-03-18T12:41:39Z
Assigned to
No Owner
Creator
Manu

Comments

Comment #0 by turkeyman — 2019-07-23T05:58:23Z
This is a really tired pattern: *cast(T*)&lvalue We should allow: cast(ref T)lvalue This is just so much clearer.
Comment #1 by nick — 2024-03-18T12:41:39Z
*** This issue has been marked as a duplicate of issue 13168 ***