[Gambas-user] Object.address() returns wrong address for a structure

Brian G brian at westwoodsvcs.com
Mon Mar 27 01:40:35 CEST 2023


That is amazing, Thank you Benoît!

"Failure is the key to success; 
 each mistake teaches us something"  .. Morihei Ueshiba
Brian G

----- On Mar 26, 2023, at 3:53 PM, Benoit Minisini benoit.minisini at gambas-basic.org wrote:

> Le 26/03/2023 à 20:27, Benoit Minisini a écrit :
>> Le 26/03/2023 à 18:07, Brian G a écrit :
>>> But when working with structures, Returning a Gambas is really not of
>>> any use to anyone. Would it not be more consitant to return the
>>> actual address of the structure as it was assigned?
>> 
>> No, because this is not the goal of Object.Address().
>> 
>> You need a new API, something like Object.Data(), that will return a
>> pointer to the date pointed by the object.
>> 
>> Regards,
>> 
> 
> Done in commit
> https://gitlab.com/gambas/gambas/-/commit/d42aad3a6561ab6efbc282275aab9a4c3c389fd8.
> 
> Regards,
> 
> --
> Benoît Minisini.
> 
> 
> ----[ http://gambaswiki.org/wiki/doc/netiquette ]----


More information about the User mailing list