Replies: 1 comment 1 reply
-
|
I think specifying the name of one of the arguments might help with resolution, for example |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello. I need to migrate from MVEL to Python script language. I have my own functions, which can be called from script.
One of my function has these two overloads.
If i send to IronPython next code, exception is raised: "Multiple targets could match: Val(str, Int32, object, bool), Val(str, Int32, str, object)"
It is happened, because "defaultValue" is string, but it can be converted to object, and "flag" is bool and can be converted to object too.
MVEL choose the 1st overload correctly in this case, because MVEL does not try to cast function types to it's parent types.
It is not possible to swap parameters in function Foo, because it is used in production - my target is just change script language without changing functions API. But maybe possible to change type of argument "defaultValue" to something else. Because "Foo" is my function and i can change its code.
Can you suggest any workaround for this case in IronPython?
Beta Was this translation helpful? Give feedback.
All reactions