Roman Yakovenko wrote:
>>> 2. resolving function overload issues
>>>
>>> Matthias, I would like to see your solution before I make any decision. Thanks.
>> So far, I would simply suggest that a set of overloaded functions is
>> actually treated like one single function.
>
> Can you explain me? Or can you write small code that show how woould
> you like to use that feature?
For example, if I write
rotateBy = mb.class_("MVector").member_function("rotateBy")
and rotateBy is actually implemented as a set of overloaded methods (as
it is the case in the Maya SDK), then this call could be made so that it
does not create an error even though the result references more than one
declaration (note that I was using "member_function" and not
"member_functions").
Then I could just treat these collection of overloaded functions as if
it was only one single function:
rotateBy.include() # includes all overloaded functions
rotateBy.rename("rotate") # renames all overloaded functions
- Matthias -
|