[fpc-devel] Current state of atari port
pascaldragon at googlemail.com
Fri Feb 11 07:38:53 CET 2022
Am 11.02.2022 um 03:59 schrieb Karoly Balogh:
> On Thu, 10 Feb 2022, Sven Barth via fpc-devel wrote:
>> Thorsten Otto via fpc-devel <fpc-devel at lists.freepascal.org> schrieb am
>> Do., 10. Feb. 2022, 15:47:
>>>> Cause in the variant you mentioned where would the allocated memory be
>>> I'm not that familiar with ObjectGEM yet, but i think the
>>> allocated pointer is stored in some list in the base class.
>> And how does one work with the created instance? How does one release
>> it? Do you have an example for that?
> Remember, this is for GUI stuff. In some cases the code actually uses the
> new return pointer, for example when you want to interact with the
> recently added GUI element, but sometimes you can just "fire and forget"
> it, like injecting an icon. In this case the constructor of the object
> adds it to some globally maintained object tree, so it's not lost or
> remain dangling. Then you can access it from there with various utility
I've seen that now as well now that I was able to look at the code.
> This is something quite specific, and I actually wonder if it's a corner
> case we don't handle or PurePascal's implementation is less restrictive.
It's a valid usecase so I say we should support that as well.
More information about the fpc-devel