>In this case the contract is that the code returns true to guarantee an
>assigned object so that you don't need if assigned(value) in a whole lot
>of places. The second part of the contract is that if it returns false,
>you don't pretend that it was true and try to do something with an
>invalid pointer. 
>

As Delphi does not support Post-Conditions I try to design my code to minimise the 
need for them.



---------------------------------------------------------------------------
    New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
                  Website: http://www.delphi.org.nz
To UnSub, send email to: [EMAIL PROTECTED] 
with body of "unsubscribe delphi"
Web Archive at: http://www.mail-archive.com/delphi%40delphi.org.nz/

Reply via email to