Fully dynamic d by opDotExp overloading
Andrei Alexandrescu
SeeWebsiteForEmail at erdani.org
Fri Apr 17 12:42:49 PDT 2009
Denis Koroskin wrote:
> On Fri, 17 Apr 2009 23:23:52 +0400, Don <nospam at nospam.com> wrote:
>
>> Yeah, The ideal language would detect ALL bugs at compile time. We don't
>> want to move in the wrong direction.
>>
>
> I would consider it a "wrong direction". You won't use it *that* frequent, only in those places where it trully fits.
> For example, a Variant class and scripting languages bindings would greatly benefit for having this functionality.
Yah, for example Variant could define opDotExp to look whether the
currently stored type supports the name. With the appropriate
compile-time introspection it could make that quite fast too. Pretty
awesome if you ask me.
I'm very excited about this.
Andrei
More information about the Digitalmars-d
mailing list