Why `foo.x.saa.aa` and `foo.y.saa.aa` is the same? `shared_AA.saa` should still be instance variable, not class variable, right?

mw mw at g.c
Wed Jun 26 02:04:44 UTC 2024


On Wednesday, 26 June 2024 at 01:17:01 UTC, mw wrote:
> On Tuesday, 25 June 2024 at 21:13:44 UTC, Nick Treleaven wrote:
>
>> I think in the next edition of D we can forbid tail mutable 
>> initializers.
>>
>
> It is still (or maybe only) useful for fields of a singleton 
> class.

But a compiler warning message will be very useful.



More information about the Digitalmars-d-learn mailing list