On 3/2/06, Matthias Baas <ba...@ir...> wrote:
> How do you rename a set of overloaded methods?
I think, I understand what are you talking about. I think that this is
a convenience
functionality and could be implemented as standalone function
def rename_overloaded( function_or_functions, new_name ):
...
I prefer not to insert such functionality to the first draft of interface.
I think it will pollute it and we will not be able to evaluate the interfac=
e.
I do think that in future versions we will\should add such functionality.
>
> > or to add the same method to multiple found classes in a namespace.
I don't understand this case at all.
>
> In the Maya SDK there are a couple of related classes that basically
> have the same interface (e.g. vector, float vector, point, float point,
> color, then the same thing for array versions etc). When decorating
> those classes I can treat every class of such a group the same and apply
> the same operations. This is where being able to select stuff from
> several classes at once can be quite handy.
May I give you a small advice? You can combine between power of pyplusplus =
and
power of C++. I think that using creating single template for every
group is better solution.
But I could be wrong.
> I'm not arguing that this way of seeing it is superior to the
> "recursive" flag, it's just one way I was trying out and it did work for
> me rather well. But I admit that the "matched" vs "contained" thing and
> operations like rename() being slightly different than other operations
> adds to the complexity. So I think it's still worthwhile to try other
> approaches as well.
Well, I read it and I think I've got the idea. Wiki is the way do discuss t=
his.
I will try to add new entry/ edit existing one that explains the functional=
ity.
--
Roman Yakovenko
C++ Python language binding
http://www.language-binding.net/
|