Special functions, like the old pblit, can be templatized and obviously are never called
user1234
user1234 at 12.de
Mon Apr 20 17:21:38 UTC 2026
On Monday, 13 April 2026 at 12:15:48 UTC, Nick Treleaven wrote:
> On Monday, 13 April 2026 at 09:23:24 UTC, user1234 wrote:
>> example:
>>
>> ```d
>> struct Test
>> {
>> this()(this)
>> {
>
> Good find, I think this should be a parse error. I'm looking at
> doing that. Also these only error if instantiated:
>
> ```d
> void f()(this);
> void g()(super);
> ```
Indeed that' matches to what's been depraceted a few years ago,
i.e `this` and `super` can could be used as types. I see this has
been fixed since last week.
A few relics remained, hopefully the last.
More information about the Digitalmars-d-learn
mailing list