[fpc-devel] Pointer cache for fast class/pointer access.
Hans-Peter Diettrich
DrDiettrich1 at aol.com
Fri Jan 6 11:55:00 CET 2012
Marcos Douglas schrieb:
>> Delphi (now) provides Records with methods, but these lack inheritance. Why
>> introduce such a crippled construct, when Objects can do the same and more
>> (virtual methods...).
>
> +1
> But more about Object type, what do you think to use Object to group
> routines instead of using procedure/functions, as a 'namespace' to not
> use the unit name as a prefix?
Just this morning I had to move some methods out of a class, so that
they could be used without an instance. IMO it's a bad idea to bind any
general-purpose identifier to an artificial container (namespace...).
DoDi
More information about the fpc-devel
mailing list