Games people play
Walter Bright
newshound at digitalmars.com
Tue Oct 3 22:43:19 PDT 2006
J Duncan wrote:
>
>
> Walter Bright wrote:
>> Bill Baxter wrote:
>>>
>>> But something more is needed for Dynamic Qt-like S&S. Some sort of
>>> compile-time introspection seems a minimal requirement. I think some
>>> way to tag particular method like Qt's "slot:" keyword will also be
>>> necessary to make it usable. Anyway you need some way to say "do
>>> something with this method" and do it at the point of declaration
>>> rather than in the constructor or elsewhere.
>>
>>
>> I don't understand. Exactly what needs to be done at compile time that
>> can't be done with the mixin method?
>
> reflection data to allow dynamic method connection at runtime by
> identifier.....
That's not compile time <g>. The only way I can see a need for this at
runtime is if the classes are coming from a DLL that the compiler
doesn't know about. The compiler does know about everything that is
statically linked to it.
More information about the Digitalmars-d
mailing list