Should this work or a bug in compiler?
monkyyy
crazymonkyyy at gmail.com
Sat Nov 7 21:50:07 UTC 2026
On Saturday, 7 November 2026 at 20:10:27 UTC, An wrote:
> On Saturday, 7 November 2026 at 03:55:46 UTC, monkyyy wrote:
>> On Saturday, 7 November 2026 at 03:46:47 UTC, apz28 wrote:
>>> [...]
>>
>> thats not what ref means, i think what you want is in
>> std.typecons; dont tho, if you want a pointer take a pointer.
>
> The whole point of `ref` is safe to avoid `null` pointer value
ref is not a type, its a coloring of call stack
yes this was a mistake and shouldve been two different features;
no, its not getting fixed.
More information about the Digitalmars-d-learn
mailing list