This would be easier with "stringify":<div> register(bob, #bob);</div><div><br></div><div>Anything like that in D?</div><div><br></div><div>John</div><div><br><div class="gmail_quote">On Tue, Oct 18, 2011 at 11:31 AM, Gor Gyolchanyan <span dir="ltr"><<a href="mailto:gor.f.gyolchanyan@gmail.com">gor.f.gyolchanyan@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">You need to compile an associative array which maps the method names<br>
to method delegates and call those delegates, replacing the context<br>
pointer with the specified object.<br>
<div><div></div><div class="h5"><br>
On Tue, Oct 18, 2011 at 8:48 PM, J Arrizza <<a href="mailto:cppgent0@gmail.com">cppgent0@gmail.com</a>> wrote:<br>
> I'm trying to write some sample code to:<br>
> 1 create an object via it's name<br>
> 2 search an object for it's functions<br>
> 3 call a static function in a class<br>
> 4 call a non-static function in an object<br>
> #1, #2 and #3 were straightforward. But #4 looks like it's not possible in<br>
> DMD 2.0.<br>
> I found this:<br>
> <a href="http://www.digitalmars.com/d/archives/digitalmars/D/announce/Runtime_reflection_9949.html" target="_blank">http://www.digitalmars.com/d/archives/digitalmars/D/announce/Runtime_reflection_9949.html</a><br>
><br>
> which implies #4 is doable in Windows but not Linux. I'm using Linux 64-bit<br>
> Ubuntu.<br>
> Any other avenues I can chase?<br>
> TIA,<br>
> John<br>
</div></div></blockquote></div><br>
</div>