Fully dynamic d by opDotExp overloading

Daniel Keep daniel.keep.lists at gmail.com
Fri Apr 17 20:51:18 PDT 2009



Steven Schveighoffer wrote:
> ...
> 
> I think Nick's point number 2 is that you would have to write the above as:
> 
> void twix(T)(T value)
> {
>       value.invokeMethod("bar");
>       value.invokeMethod("bar");
> }
> 
> which would work whether bar was dynamically or statically defined.

So we have to write ALL templated code that calls member functions or
accesses properties/fields like this?  Because otherwise objects may as
well not be able to do this, since it wouldn't play with any templates ever.

You have to be joking.

> ...
> 
> -Steve



More information about the Digitalmars-d mailing list