Introspection/Reflection/etc on Linux

J Arrizza cppgent0 at gmail.com
Sat Oct 22 18:17:09 PDT 2011


This would be easier with "stringify":
     register(bob, #bob);

Anything like that in D?

John

On Tue, Oct 18, 2011 at 11:31 AM, Gor Gyolchanyan <
gor.f.gyolchanyan at gmail.com> wrote:

> You need to compile an associative array which maps the method names
> to method delegates and call those delegates, replacing the context
> pointer with the specified object.
>
> On Tue, Oct 18, 2011 at 8:48 PM, J Arrizza <cppgent0 at gmail.com> wrote:
> > I'm trying to write some sample code to:
> >   1 create an object via it's name
> >   2 search an object for it's functions
> >   3 call a static function in a class
> >   4 call a non-static function in an object
> > #1, #2 and #3 were straightforward. But  #4 looks like it's not possible
> in
> > DMD 2.0.
> > I found this:
> >
> http://www.digitalmars.com/d/archives/digitalmars/D/announce/Runtime_reflection_9949.html
> >
> > which implies #4 is doable in Windows but not Linux. I'm using Linux
> 64-bit
> > Ubuntu.
> > Any other avenues I can chase?
> > TIA,
> > John
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.puremagic.com/pipermail/digitalmars-d/attachments/20111022/56054949/attachment.html>


More information about the Digitalmars-d mailing list