Talk:CPP/Debugging/Assert

From ProgrammingExamples
< Talk:CPP
Revision as of 06:51, 29 June 2010 by Daviddoria (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

I've heard that assert should be used only to test "contractual" function things. That is, in this example you have used it to verify a password, but that is more of a "runtime" check than a "function contract" check. Any thoughts on this? Daviddoria 10:51, 29 June 2010 (UTC)