Now that it's possible to ask asCScriptFunction::GetParam() for the default argument of a param, if any, is it possible to make use of this to fill in default parameters when calling a script function from C++?
For example, in script I have:
void foo(int a, bool b = true)
From the application side, I'd like to be able to execute "foo(int)" and allow 'b' to use the default param. Is it feasible to do this with the current API?
I'm trying to reconcile the fact that the default value is returned as a string - what if the param type is not a string? Or, if I set the 0th argument via the script context, will the 1th take the default value?
Thank you.