[Joke] C++ and D namings

Imperatorn johan_forsberg_86 at hotmail.com
Wed Jan 20 17:08:38 UTC 2021


On Wednesday, 20 January 2021 at 16:07:26 UTC, Steven 
Schveighoffer wrote:
> On 1/20/21 10:31 AM, Paul Backus wrote:
>> On Wednesday, 20 January 2021 at 15:17:09 UTC, Steven 
>> Schveighoffer wrote:
>>> On 1/20/21 10:13 AM, Paul Backus wrote:
>>>> [...]
>>>
>>> That seems like a bug. Writing the x directly fails in @safe 
>>> code.
>>>
>> 
>> I agree. Though now that I take a look at the spec, it seems 
>> like the bug may actually be in the line
>> 
>>      writeln(a.y);
>> 
>> ...since accessing immutable data that's overlapped with 
>> mutable data breaks safe aliasing [1].
>> 
>
> Thanks for that link, I wasn't aware of that list.
>
> In my Dconf online presentation, I found numerous bugs 
> surrounding unions and @safe code.
>
> For instance, a union between a pointer and a scalar is 
> considered "safe" to access the scalar (even writing it!)
>
> -Steve

Are those bugs reported?


More information about the Digitalmars-d mailing list