Re: [pygccxml-development] USE_CALLDEF_ORGANIZER
Brought to you by:
mbaas,
roman_yakovenko
|
From: Roman Y. <rom...@gm...> - 2010-01-28 09:37:15
|
On Thu, Jan 28, 2010 at 11:18 AM, Berserker <ber...@ho...> wrote:
> I forgot to report another important problem about calldef_organizer_t.
> I have a case like this:
>
> class Foo
> {
> public:
> void setValue(bool v);
> void setValue(int v);
> void setValue(double v);
> };
>
> Actually, enabling USE_CALLDEF_ORGANIZER, the "bool" override is registered
> after the "int" one but before "double" and so the python code:
>
> f = Foo()
> f.setValue(True)
>
> invokes the "double" override.
> The problem is that "is_related" method invokes is_integral and not
> is_arithmetic
> as I expected: I think that this is another reason to implement a custom
> "is_related"
> method in calldef_organizer_t.
That's okey. You will be able to define your own sort criteria.
--
Roman Yakovenko
C++ Python language binding
http://www.language-binding.net/
|