This needs to be fixed
Nick Treleaven
nick at geany.org
Wed Aug 28 08:44:37 UTC 2024
On Sunday, 25 August 2024 at 19:42:08 UTC, Timon Gehr wrote:
> On 8/25/24 21:35, user1234 wrote:
>>
>> Just in case, the kind of alias you are debating about is to
>> be deprecated, see
>> https://dlang.org/spec/legacy.html#alias-instance-member.
>
> Well, first it should be deprecated,
I did that first, Walter said it shouldn't be a deprecation:
https://github.com/dlang/dmd/pull/15863#issuecomment-1902711081
The problem is that if someone understood what it actually does
(alias a member of a type), then deprecating that will deprecate
correct code. But I think the confusion justifies a deprecation.
So it was made a next edition error. Possibly it could be a
warning in the current edition with -w.
I did refine the error so it only happens for members of an
instance that need `this` -
https://github.com/dlang/dmd/pull/16813, merged yesterday.
More information about the Digitalmars-d
mailing list