[fpc-pascal] constructor "guarantee" and other behavioural stuff

Mark Morgan Lloyd markMLl.fpc-pascal at telemetry.co.uk
Thu Jan 21 13:42:09 CET 2016


Pierce Ng wrote:

>> In this example if the constructor in TNonce isn't declared as virtual (and
>> the on in TSomeSubNonce not as override) the TNonce.Create will be called,
>> otherwise TSomeSubNonce will be called.
> 
> Thanks Sven. Haven't had a need to do stuff like this with Object Pascal for
> now, but for past several years I have been programming in Smalltalk so this
> looks familiar. :-)

[GRIN]

-- 
Mark Morgan Lloyd
markMLl .AT. telemetry.co .DOT. uk

[Opinions above are the author's, not those of his employers or colleagues]



More information about the fpc-pascal mailing list