[Issue 10266] CTFE: Allow reinterpret casts T <-> T[1]

2022-12-17 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=10266 Iain Buclaw changed: What|Removed |Added Priority|P2 |P4 --

[Issue 10266] CTFE: Allow reinterpret casts T <-> T[1]

2013-07-04 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=10266 --- Comment #3 from Don 2013-07-04 01:23:30 PDT --- (In reply to comment #2) > (In reply to comment #1) > > I suspect that after the cast, it might not be a genuine array. > > I like the idea to not create genuine array here. Just a restricte

[Issue 10266] CTFE: Allow reinterpret casts T <-> T[1]

2013-06-18 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=10266 --- Comment #2 from Denis Shelomovskij 2013-06-18 12:24:11 MSD --- (In reply to comment #1) > I suspect that after the cast, it might not be a genuine array. I like the idea to not create genuine array here. Just a restricted array for e.g.

[Issue 10266] CTFE: Allow reinterpret casts T <-> T[1]

2013-06-18 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=10266 --- Comment #1 from Don 2013-06-18 00:31:47 PDT --- Supporting this would create a *huge* number of corner cases. For example, CTFE strictly enforces C pointer arithmetic. int b; int * p = &b; ++p; // illegal, can only do pointer arithmetic