[fpc-devel] Language extension: absolute for classes

Micha Nelissen micha at neli.hopto.org
Sun Oct 1 22:19:58 CEST 2006


Marco van de Voort wrote:
>> Changing type to something which is not a descendant (and thus
>> incompatible) seems useless and always dangerous to me, so should be
>> forbidden if possible.
> 
> I also considered it that way. But maybe the "absolute" keyword is then a
> bit badly chosen, since it implies memory overlaying, no questions asked.

Yes, agree, but the way of use is so similar. Maybe the other usages
should get this checking as well ;-).

Maybe 'override' instead, but that one is so closely tied to functions,
and implies something 'virtual' as well.

Micha



More information about the fpc-devel mailing list