View mode: basic / threaded / horizontal-split · Log in · Help
March 02, 2005
how about reflection and classLoader
Hi there,

I am a newbie here, but really like D (at least theoretically from specs). So my
question is probably very simple and was discussed here for sure (but I dont
like to sweep the whole board).

How D supports reflection and dynamic class loading, member listing..

(I just read the language comparison again)

Is it correct that there is no support for it? at least not a convenient one?

Thanks - wish great D-future

wonder
March 02, 2005
Re: how about reflection and classLoader
Hi,

I'm a newbie too, so feel free to correct me if I'm off track...

My guess is that D is a compiled and linked language, more akin to C or C++ 
than
Java in the development cycle, class loading is just a bit too much to ask. 
Of course,
its still possible to create a dynamic library (shared library) and use that 
I'd guess - at
least on Windows (don't know how such things work on Linux/UNIX).

One thing I definitely would like to see would be a library version of the 
compiler, this
would be nicer for such tasks than having to spawn a new process. That's a 
common
want for me with such things - and I've always liked the approach of Java 
and such
environments for this.

As far as Reflection is concerned, all I know is that Object supports a 
classinfo method,
this returns an instance of ClassInfo, but there is no documentation yet - 
just the contents
of Object.d

HTH,

Rob

<wonder@szm.sk> wrote in message news:d033o5$1d38$1@digitaldaemon.com...
> Hi there,
>
> I am a newbie here, but really like D (at least theoretically from specs). 
> So my
> question is probably very simple and was discussed here for sure (but I 
> dont
> like to sweep the whole board).
>
> How D supports reflection and dynamic class loading, member listing..
>
> (I just read the language comparison again)
>
> Is it correct that there is no support for it? at least not a convenient 
> one?
>
> Thanks - wish great D-future
>
> wonder
>
>
Top | Discussion index | About this forum | D home