[Gambas-user] IDE (and runtime) segfault
Bruce
bbruen at ...2308...
Sat Dec 29 13:40:17 CET 2012
Hi Benoît,
This isn't really a bug per se, so I haven't reported it as such.
If a child class implements a property that uses a _get(pname as string)
in its' parent class and the child's property name is the same name as
the referenced name in the parent then a simple typo can cause an IDE
and runtime segfault.
If you can understand that, then you are doing better than me, who is
trying to write it. :-)
Attached is a demo of what I am trying to say.
As written, it runs correctly and prints the value "42".
But if I mistype line 15 in Child.class as:
Return Me.Something * 2
(i.e. a dot instead of a bang) then we get a segfault.
I appreciate that this is obscure and that I can't explain it better
than this.
your thoughts would be appreciated
Bruce
-------------- next part --------------
A non-text attachment was scrubbed...
Name: segfault-0.0.4.tar.gz
Type: application/x-compressed-tar
Size: 5512 bytes
Desc: not available
URL: <http://lists.gambas-basic.org/pipermail/user/attachments/20121229/a0986562/attachment.bin>
More information about the User
mailing list