[Gambas-user] Object.address() returns wrong address for a structure
Benoit Minisini
benoit.minisini at gambas-basic.org
Mon Mar 27 00:53:20 CEST 2023
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.
More information about the User
mailing list