[fpc-devel] Pointer cache for fast class/pointer access.

Marcos Douglas md at delfire.net
Wed Jan 4 14:51:50 CET 2012

On Wed, Jan 4, 2012 at 10:26 AM, Sven Barth <pascaldragon at googlemail.com> wrote:
> Am 04.01.2012 13:33, schrieb Marcos Douglas:
>> Object type is (very) older than Class type and I don't think the core
>> team wanted some similarity between Object and Class types. Everybody
>> prefer classes so, the Object type was forgotten.
> It wasn't the core team who introduced the differences between classes and
> objects, but Borland, who first created the "object system" in Turbo Pascal
> and later switched to the more advanced "class system".

True, you're right.

>> I thinking if the Object type will be deprecated in the future... I hope
>> not.
> 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).

Good to know  ;)
And, as somebody asked, what the advantages (performance?) using
Object instead Class?

I like to use Object to group routines instead of using
procedure/functions... as a 'namespace' to not use the unit name as a
I would to know what do you, guys, think about it.

Marcos Douglas

More information about the fpc-devel mailing list