[prev in list] [next in list] [prev in thread] [next in thread]
List: pykde
Subject: Re: [PyKDE] SIP can generate code with duplicates for the default
From: Phil Thompson <phil () riverbankcomputing ! co ! uk>
Date: 2005-04-23 23:18:18
Message-ID: 200504240018.18672.phil () riverbankcomputing ! co ! uk
[Download RAW message or body]
On Friday 22 April 2005 11:14 pm, Gerard Vermeulen wrote:
> Hi Phil,
>
> A SIP specification file like
>
> class Klass
> {
> public:
> // The following constructor is part of the C++ interface.
> Klass();
> // I want to add a constructor which takes a Numerical Python
> // array. There is no equivalent in C++.
> Klass(SIP_PYOBJECT) [()];
> %MethodCode
> sipCpp = new sipKlass();
> // set the data in Klass to that of the NumPy array.
> %End
> };
>
> makes SIP duplicate the code for sipKlass() in the .h and .cpp file.
> After removing the duplications by hand, the code compiles and runs
> fine.
Should be fixed in the current snapshot.
Thanks,
Phil
_______________________________________________
PyKDE mailing list PyKDE@mats.imk.fraunhofer.de
http://mats.imk.fraunhofer.de/mailman/listinfo/pykde
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic