Another, is it a bug?

Adam D. Ruppe via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Tue Sep 15 20:54:32 PDT 2015


On Wednesday, 16 September 2015 at 03:48:59 UTC, Random D user
> Given that, normally properties are just overloaded methods in 
> D, it's pretty sad classes break this behavior/convention.

The D behavior for overloading is different in general:

http://dlang.org/hijack.html

It basically never overloads across scopes. You need to alias the 
name into the scope too explicitly


More information about the Digitalmars-d-learn mailing list