[prev in list] [next in list] [prev in thread] [next in thread] 

List:       pykde
Subject:    Re: [PyQt] Does sip support using.
From:       Phil Thompson <phil () riverbankcomputing ! co ! uk>
Date:       2007-09-21 3:38:01
Message-ID: 200709210438.01107.phil () riverbankcomputing ! co ! uk
[Download RAW message or body]

On Friday 21 September 2007, Matt Newell wrote:
> Does sip support using keyword as in the following
>
> class A
> {
> public:
> 	void a();
> 	void a(int);
> };
>
> class B : public A
> {
> public:
> 	using A::a;
> 	void a(int);
> }
>
>
> so you can call -
>
> o = B()
> o.a()
>
>
> You can achieve the same by declaring B as
> class B : public A
> {
> public:
> 	void a();
> 	void a(int);
> }
>
> but then it's out of sync with the header file and often adds a lot of
> extra for some classes.
>
> Sip barfed when I tried it, but I haven't upgraded in a while.
>
> If it's not implemented and not something you want to take the time to do
> atm, then I would consider writing a patch if you think it'll be accepted.

It's not implemented. I would be interested in a patch, but the generated code 
should not use it, ie. you can't assume that the target compiler supports it.

Phil
_______________________________________________
PyQt mailing list    PyQt@riverbankcomputing.com
http://www.riverbankcomputing.com/mailman/listinfo/pyqt
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic