Compile-time reflection

Julio César Carrascal Urquijo jcesar at phreaker.net
Tue Jul 3 10:05:11 PDT 2007


Gregor Richards wrote:
> Time for a response without reading the entire message 8-D
> 
> http://www.dsource.org/projects/tango.tools/browser/trunk/tools/rodin
> 
> (FYI: Rodin will work with either Tango or Phobos)
> 
>  - Gregor Richards

Very impressive Gregor. One question: Will it be possible to call a 
function without knowing it's signature at compile time? In all examples 
you used a delegate, a function or a base class. What I'd like to do is 
something like:

object obj = refGetClass(classPath);
object[] arguments = new object[] { 1, "string", new Object() };
refCallMethod(obj, "foo", arguments);

Obviously the object[] doesn't work on D but maybe Box(T)?

Thanks



More information about the Digitalmars-d mailing list