[prev in list] [next in list] [prev in thread] [next in thread]
List: pykde
Subject: Re: [PyKDE] SIP: assigning None to public variable which is user
From: Phil Thompson <phil () riverbankcomputing ! co ! uk>
Date: 2005-05-28 15:03:03
Message-ID: 200505281603.03198.phil () riverbankcomputing ! co ! uk
[Download RAW message or body]
On Saturday 28 May 2005 2:44 pm, Gerard Vermeulen wrote:
> The SIP extension for
>
> class Double
> {
> public:
> Double(double v=0): value(v) {}
> private:
> double value;
> };
>
> class Ball
> {
> public:
> Ball() {};
> double weight;
> Double radius;
> };
>
> crashes when doing
>
> b = Ball()
> b.radius = None
>
> because in this case the statement
> sipCpp -> radius = *val;
> in var_Ball_radius() dereferences the null pointer
>
> See attachment.
It should be fixed in tonight's 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