[Gambas-user] Crash with Free()

Doriano Blengino doriano.blengino at ...1909...
Fri Jan 14 07:57:09 CET 2011


Ian Haywood ha scritto:
> On Fri, Jan 14, 2011 at 8:41 AM, Demosthenes Koptsis
> <demosthenesk at ...626...> wrote:
>   
>> :) Pointers are tricky!
>>     

> Aaaa... of course, pointer is not correct to free after "pp += 4".
> Though, result shouldn't be signal 11.
>   
It could not be different.
> yes, the ability to avoid pointers is one of the main advantages of
> higher-level languages like Gambas.
> I'm curious to know why you guys are so fascinated by them, other than
> interfacing with C libraries I would have thought they should be left
> well alone.
>   
I agree. But, if one really wants pointers, one could create a wrapping 
class around the real pointer, which makes checks before doing 
operations -> pointers in OOP fashion...

Regards,
Doriano




More information about the User mailing list