----boundary-LibPST-iamunique-1319159302_-_-
Content-type: text/plain
Wojtek Skulski schrieb:
>On Mon, 12 Jun 2006, Marco Ciot wrote:
>
>
>
>>The intention of the programmer when placing an ASSERT should never be to
>>halt the program at that point but to assert some important condition for
>>the subsequent program code.
>>
>>
>
>What do you mean by "assert some important condition"? What should a
>program do when the assertion fails? Right now it halts. If this is not
>what you want, then what action are you proposing instead?
>
>
Sorry, but in no serious program for a non-technical customer a trap is
a *wanted* result ;-).
If the error is the customer's fault, he needs a serious error message
telling him what to do. And if it is not his fault, then the programmer
has to make sure that the error doesn't occur. "Traps" may be fine if
you do some programming for yourself, but if you sell software, you'd
better not program "traps";-).
Rene
--- BlackBox
--- send subject HELP or UNSUBSCRIBE to blackbox{([at]})nowhere.xy
----boundary-LibPST-iamunique-1319159302_-_-
Content-type: application/rtf
Content-transfer-encoding: base64
Content-Disposition: attachment; filename="rtf-body.rtf"
e1xydGYxXGFuc2lcYW5zaWNwZzEyNTJcZnJvbXRleHQgXGRlZmYwe1xmb250dGJsDQp7XGYwXGZz
d2lzcyBBcmlhbDt9DQp7XGYxXGZtb2Rlcm4gQ291cmllciBOZXc7fQ0Ke1xmMlxmbmlsXGZjaGFy
c2V0MiBTeW1ib2w7fQ0Ke1xmM1xmbW9kZXJuXGZjaGFyc2V0MCBDb3VyaWVyIE5ldzt9fQ0Ke1xj
b2xvcnRibFxyZWQwXGdyZWVuMFxibHVlMDtccmVkMFxncmVlbjBcYmx1ZTI1NTt9DQpcdWMxXHBh
cmRccGxhaW5cZGVmdGFiMzYwIFxmMFxmczIwIFdvanRlayBTa3Vsc2tpIHNjaHJpZWI6XHBhcg0K
XHBhcg0KPk9uIE1vbiwgMTIgSnVuIDIwMDYsIE1hcmNvIENpb3Qgd3JvdGU6XHBhcg0KPlxwYXIN
Cj4gIFxwYXINCj5ccGFyDQo+PlRoZSBpbnRlbnRpb24gb2YgdGhlIHByb2dyYW1tZXIgd2hlbiBw
bGFjaW5nIGFuIEFTU0VSVCBz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