Confirm: D escapes auto ref similar to Go language
Steven Schveighoffer
schveiguy at gmail.com
Sun Aug 24 16:38:21 UTC 2025
On Sunday, 24 August 2025 at 15:47:28 UTC, Brother Bill wrote:
> On Sunday, 24 August 2025 at 15:29:01 UTC, Steven Schveighoffer
> wrote:
>> I don't know what's happening here, but it seems like a bug.
>> This should not compile (it does for me, despite the comment
>> above).
>>
>
> It does compile. I didn't change the comment from earlier code.
>
> The core question is whether this is clean, safe D code.
No, it's code that shouldn't compile IMO. Don't count on this
working in a future version.
-Steve
More information about the Digitalmars-d-learn
mailing list