SPAM-LOW: Re: [nem-en] Metaphor, staging, typed reflection
Sandro Magi
smagi at higherlogics.com
Sun Jan 7 23:49:51 CET 2007
Kamil Skalski wrote:
>>
>> The plugin's public interface may be known at compile-time, but the
>> internal structure can not be known, as the end user is specifying a
>> class unknown at compile-time. This is a truly dynamic situation.
>>
>
> This is not a very good example, since you need to instantiate the
> object to use reflection on it. I would probably just send the ready
> assembly over the wire and place some "Deserialize (byte[])" method in
> the interface.
Note: you are already implicitly depending on a generic reflection and
serialization facility just by deserializing and loading the assembly.
How would you resolve this circularity without resorting to reflection?
Sandro
More information about the devel-en
mailing list