[fpc-devel] Sorting tests

Sven Barth pascaldragon at googlemail.com
Mon Nov 28 11:07:20 CET 2022

J. Gareth Moreton via fpc-devel <fpc-devel at lists.freepascal.org> schrieb am
Mo., 28. Nov. 2022, 11:01:

> Just want to clarify something... if a type is managed, can it be safely
> typecast to a pointer in all instances and on all platforms? (The
> purpose being so if I wanted to swap two items, so there's no overall
> change in the reference counters, I can simply swap the pointers...
> there's no dereferencing involved!)

No, managed does not automatically mean that it's a Pointer based type.
Records with management operators, Variants and Windows WideString are
managed as well.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-devel/attachments/20221128/29d06ecb/attachment.htm>

More information about the fpc-devel mailing list