|invoke('', 'someFunction', ['a','b','c']);|
Now this is an interesting one and I believe the Russ chap on
StackOverFlow has it wrong and miss reading the documentation on CF10.
[] means optional in their definition.
The documentation states it is an array of arguments. So technically
that example at the top of this email (from StackOverFlow) is that the
someFunction( [] ) wants an array as a single parameter.
I think what you are really wanting is:
|invoke('', 'someFunction', 'a','b','c');|
which is more like the Java varArgs feature.
I do not see that as a huge problem to add to OpenBD. If you want to
do it, then we'll happily review your patch.
On 22/04/2013 08:30, David Mulder wrote:
Two questions:
http://stackoverflow.com/questions/16146682/invoking-dynamic-method-name-methodname-from-string
OpenBD lacks the CF10 function /invoke()/ making it impossible as far
as I know to evaluate a dynamically named function without the
/evaluate/ function. Please read the above question for more detail
and I would concretely request whether either the javascript syntax
could be supported or the /invoke/ function.
http://stackoverflow.com/questions/16146781/invoking-function-with-dynamic-array-of-arguments
Once again, read the question first, as far as I can tell this is
impossible, so specifically I was first of all wondering if there's
any openbd specific java solution (just to get it working somehow)?
And whether it would be a fair idea to make argumentCollection accept
an array.
--
--
online documentation: http://openbd.org/manual/
http://groups.google.com/group/openbd?hl=en
---
You received this message because you are subscribed to the Google Groups "Open BlueDragon" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.