Do you use full-on BasicType base class / interface?

Quirin Schroll qs.il.paperinik at gmail.com
Thu Sep 26 20:13:04 UTC 2024


On Thursday, 26 September 2024 at 06:48:12 UTC, Kagamin wrote:
> I suppose it's done to simplify grammar. One concept less. 
> Something similar was reported in bugzilla: the reporter wanted 
> to syntactically disallow `this` in static methods.

I actually implemented the base class thing already.

Those are vastly different spaces.

Not having `this` as a syntactically valid token in a non-member 
function makes little sense. Imagine writing mixin templates 
without having `typeof(this)`.

Also, the grammar defines a lot of rather useless entities.


More information about the Digitalmars-d mailing list