Chances of D getting proper runtime reflection?

Jacob Carlborg doob at me.com
Sun Aug 21 23:36:43 PDT 2011


On 2011-08-21 21:43, Vladimir Panteleev wrote:
> On Sun, 21 Aug 2011 21:21:05 +0300, Jacob Carlborg <doob at me.com> wrote:
>
>> Would that be possible to do for third party types available in a
>> pre-compiled library?
>
> If said types are in the .di files, sure, why not?
>
> Otherwise, the answer is obvious... but as someone else mentioned in
> this thread, if the authors of said libraries choose to hide the source
> code or internals of the library, they probably won't be very friendly
> towards reflection either.

To be able to use a library you need parts of the source code, like the 
methods and fields available. And when that's already available what's 
wrong with some compiler/runtime changes to make it possible to use 
these through base class references.

-- 
/Jacob Carlborg


More information about the Digitalmars-d mailing list