[Gambas-user] IDE (and runtime) segfault
Benoît Minisini
gambas at ...1...
Tue Jan 1 13:01:23 CET 2013
Le 29/12/2012 13:40, Bruce a écrit :
> 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
>
It should be fixed in revision #5481. You should get the expected "Stack
overflow" error instead of a segfault.
Regards,
--
Benoît Minisini
More information about the User
mailing list