Fully dynamic d by opDotExp overloading
Andrei Alexandrescu
SeeWebsiteForEmail at erdani.org
Sat Apr 18 14:48:33 PDT 2009
Michel Fortin wrote:
> On 2009-04-18 11:19:38 -0400, Andrei Alexandrescu
> <SeeWebsiteForEmail at erdani.org> said:
>
>> I'm confused. Isn't it clear that at the moment we "have" the ability
>> to pass a function name as a runtime string?
>
> Indeed, you can pass the template argument as a runtime argument to
> another function. No misunderstanding here.
>
>
>> What we're lacking is the ability to implement that using reflection,
>> but that's an entirely separated discussion!
>
> Runtime reflection lacking indeed, but wether runtime reflection is an
> entirely separated discussion depends on if what we're doing will get in
> the way of implementing it.
>
>
>> And no, you're not supposed to forward from invoke(string,
>> Variant[]...) to opDotExp - it's precisely the other way around!
>
> Wrong. Whether it's one way or another entirely depends on what your
> goals are.
Wrong. It's impossible to pass a dynamic string as a static string, so
the street is one way.
Andrei
More information about the Digitalmars-d
mailing list