On Wed, 01 Apr 2009 18:34:56 -0400, Christopher Wright
<[email protected]> wrote:
>Walter Bright wrote:
>> I've thought of that a couple times, and there was a reason it was a
>> problem, I just can't remember it at the moment!
>
>For one thing, no polymorphism. For that reason alone I would never use it.
It's not such a big problem because you could define a polymorphic
opDot yourself:
class C
{
Variant opDot(string name, A)(A args)
{
return virtualDot(name, args);
}
Variant virtualDot(string name, ...) {}
}
class D : C
{
override Variant virtualDot(string name, ...) {}
}
There must be reasons other than the lack of polymorphism.