[haXe] Reflect.callMethod()
Franco Ponticelli
franco.ponticelli at gmail.com
Sun Apr 9 14:39:53 CEST 2006
Ok, that makes sense ... but what about a Reflect.callMethodByName(o,
methodName, args) ? Or maybe I can simply use the Reflect.field method?
2006/4/9, Nicolas Cannasse <ncannasse at motion-twin.com>:
>
> > Just to practice with haXe I'm doing some tests and I need some
> > clarifications about Reflect.callMethod().
> > The parameters are: the object on which I want to execute a method, the
> > method name as a string and the optional arguments ... right?
>
> Not right :)
>
> The parameters are : the object, the function *itself* and the
> arguments. That means in particular that you don't need the method to be
> part of the object prototype.
>
> Nicolas
>
> --
> haXe - an open source web programming language
> http://haxe.org
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.motion-twin.com/pipermail/haxe/attachments/20060409/91a99400/attachment.htm
More information about the Haxe
mailing list