[fpc-devel] Suggestion: reference counted objects
Sven Barth
pascaldragon at googlemail.com
Mon Sep 22 08:01:57 CEST 2014
On 21.09.2014 21:29, Peter Popov wrote:
> Sven,
> based on your comments a bizarre thought came to me. Currently, class
> instances are pointers. What you propose will somehow create a special
> pointer type (referenced class).
Huh? Why do you think that? It would just be that variables with a
reference counted class type are handled differently. Isn't that exactly
what you wanted? Leave normal classes untouched and add reference
counting in such a way that it doesn't need to be used...
And I consider your pointer compression a really bad idea. It's bad to
make assumptions about the memory layout especially when we have a
general purpose compiler/RTL which would have no problems of using the
complete address space.
Regards,
Sven
More information about the fpc-devel
mailing list