CTFE limitation on reinterpreting cast

monkyyy crazymonkyyy at gmail.com
Fri Oct 2 02:06:59 UTC 2026


On Friday, 2 October 2026 at 01:33:46 UTC, Richard (Rikki) Andrew 
Cattermole wrote:
> On 02/10/2026 2:22 PM, Walter Bright wrote:
>> On 10/1/2026 12:15 AM, Richard (Rikki) Andrew Cattermole wrote:
>>> Ya know, C has rules for how structs can be merged.
>>>
>>> Perhaps that is a good place to look at.
>> 
>> Perhaps. But we'd also need a case for why this capability is 
>> needed.
>
> Can and should are two separate questions, we have not shown 
> can, let alone should.
>
> One problem at a time!

Can is very much settled; even if it wasnt the current behavior, 
void* casts are always an option; it took effort to break ctfe 
casts for safety.


More information about the Digitalmars-d mailing list