This needs to be fixed - ref

Timon Gehr timon.gehr at gmx.ch
Tue Sep 3 00:21:54 UTC 2024


On 9/2/24 11:53, Nick Treleaven wrote:
> On Saturday, 31 August 2024 at 12:43:53 UTC, Timon Gehr wrote:
>> On 8/31/24 11:23, Nick Treleaven wrote:
>>>
>>> So the following error makes sense:
>>>
>>>      alias x = s.expand[0];
>>>      x.writeln(); // Error: accessing non-static variable `x` 
>>> requires an instance of `S`
>>
>> It would be consistent, but it does not make sense.
> 
> Why not?

Because it does not just work. The thing it is consistent with does not 
make sense in the first place. What do we gain from this not working?


More information about the Digitalmars-d mailing list