[fpc-devel] Pointer cache for fast class/pointer access.
md at delfire.net
Wed Jan 4 19:45:27 CET 2012
On Wed, Jan 4, 2012 at 3:03 PM, Hans-Peter Diettrich
<DrDiettrich1 at aol.com> wrote:
> Sven Barth schrieb:
>>> I thinking if the Object type will be deprecated in the future... I hope
>> As Free Pascal still writes on its flag that it is compatible to Turbo
>> Pascal I doubt that it will be deprecated (also there is quite some code in
>> the compiler and also in some packages which use object).
> I don't see any reason why the Object type should be dropped. It's close
> to C++ objects, useful in porting code. It allows for static objects,
> e.g. in the stack, while TObject is bound to the heap (without tricks).
So, Object types is indicated only for compatibility?
In your opinion, for the atual code, we have some benefit using Object
(stack) instead Class (heap)?
> I used Object types to e.g. emulate C bitfields, with a simple typecast of a
> variable into the according object...
What is bitfields?
More information about the fpc-devel