This needs to be fixed - ref

Nick Treleaven nick at geany.org
Mon Sep 2 09:53:43 UTC 2024


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?


More information about the Digitalmars-d mailing list