Re: [pygccxml-development] Two patches proposal
Brought to you by:
mbaas,
roman_yakovenko
From: Berserker <ber...@ho...> - 2009-12-24 09:47:28
|
> English is not mother language too. May be I choose the wrong and too > much strong word. NP, back "in topic" I think that there is a problem with your implementation :) consider this case: class Foo { public: Foo(int a = 0, bool v = true); }; Using your code: if 1 != len( self.required_args ): return False It doesn't produces a "convertible from int" becase the required_args are 0 but here we have a "convertible from int" class too. Tested again with mine it works: args = len(self.arguments) if args != 1: if args > 1: for arg in self.arguments[1::]: if not arg.default_value: return False else: return False Let me know _________________________________________________________________ Giochi, radio, TV... E tutti i tuoi amici. Cercali su Messenger http://www.messenger.it/home_comunica.aspx |