Re: PrivInf

From: René A. Krywult <"René>
Date: Tue, 14 Sep 2004 14:29:35 +0200 (DFT)

----boundary-LibPST-iamunique-1629164617_-_-
Content-type: text/plain

Well, Gérard, being a software developer by profession, I'd have to tell you that n.d. results lead to "trapping" in a lot of languages. There are some, like ADA, or PLI, where you can handle errors in an "On Error" routine, but usually they tend to make the programs less logical and usable.

It was one of the very first rules that I learned, to prevent a division by 0 beforehand.

I mean, what's the logic behind your question? You can either check for "division by zero" before you make the division, or your can handle the "division by zero" exception afterwards. Where's the big benefit?

IMHO, not checking for div by 0 is sloppy pogramming, and it is totally against the logic of Oberon, where you are expressis verbis told that you should assert all that is necessary for any procedure etc. before you perform it.

René


=============René A. Krywult
-------------------------------------------------
"Gûrberen," pent i naneth dî,
"mabapadan a ce darach sí!"
___________________________________



----- Original von: Gérard Meunier <gemeu{([at]})nowhere.xy

> > This is not the first time that compiler
> 'upgrades' have introduced problems with REAL
> CONSTs.
>
> This is bad for confidence. I think a patch,
> or at least an explanation, would be helpful.

Read on Oms BlackBox page:

> Due to its stability, performance and simplicity, BlackBox is perfectly
suited for science
> and engineering applications.

Well, we all know that, in general, this assertion is true. But it would be
still more true if REALs were bug free.

When a calculation gives an undefined result, such as INF/INF, 0/0 or
INF-INF, the program traps. Is there a way, in this case, to replace the
undefined result by a predefined one and resume calculation without
trapping? And I mean that I'd like to get this behaviour without a plethora
of tests. Any idea? It's called exceptions in other languages.

Gérard

--------------------------------------------

To unsubscribe from this mailing list, send a message containing the word "unsubscribe" to:
   blackbox-request{([at]})nowhere.xy

To get a list of valid e-mail commands and instructions on their usage, send a message containing the word "help" to the above address.

Send any problem reports or questions related to this email list to the list owner at
   owner-blackbox{([at]})nowhere.xy

Current posting policy:

a) To post you should use the same address by which you are subscribed to the mailing list. That way, the list server will recognize you as subscriber and forward your posting immediately, without creating any overhead.

b) If, for some reason, you cannot post from the address, by which you are subscribed, your message will be moderated to avoid spam. Please understand that moderation will often cause some delay, in particular over weekends or holydays.



-------------------------------------------
Versendet durch AonWebmail (webmail.aon.at)
--------------------------------------------

To unsubscribe from this mailing list, send a message containing the word "unsubscribe" to:
   blackbox-request{([at]})nowhere.xy

To get a list of valid e-mail commands and instructions on their usage, send a message containing the word "help" to the above address.

Send any problem reports or questions related to this email list to the list owner at
   owner-blackbox{([at]})nowhere.xy

Current posting policy:

a) To post you should use the same address by which you are subscribed to the mailing list. That way, the list server will recognize you as subscriber and forward your posting immediately, without creating any overhead.

b) If, for some reason, you cannot post from the address, by which you are subscribed, your message will be moderated to avoid spam. Please understand that moderation will often cause some delay, in particular over weekends or holydays.


----boundary-LibPST-iamunique-1629164617_-_-
Content-type: application/rtf
Content-transfer-encoding: base64
Content-Disposition: attachment; filename="rtf-body.rtf"

e1xydGYxXGFuc2lcYW5zaWNwZzEyNTJcZnJvbXRleHQgXGRlZmYwe1xmb250dGJsDQp7XGYwXGZz
d2lzc1xmY2hhcnNldDAgQXJpYWw7fQ0Ke1xmMVxmbW9kZXJuIENvdXJpZXIgTmV3O30NCntcZjJc
Zm5pbFxmY2hhcnNldDIgU3ltYm9sO30NCntcZjNcZm1vZGVyblxmY2hhcnNldDAgQ291cmllciBO
ZXc7fX0NCntcY29sb3J0YmxccmVkMFxncmVlbjBcYmx1ZTA7XHJlZDBcZ3JlZW4wXGJsdWUyNTU7
fQ0KXHVjMVxwYXJkXHBsYWluXGRlZnRhYjM2MCBcZjBcZnMyMCBXZWxsLCBHXCdlOXJhcmQsIGJl
aW5nIGEgc29mdHdhcmUgZGV2ZWxvcGVyIGJ5IHByb2Zlc3Npb24sIEknZCBoYXZlIHRvIHRlbGwg
eW91IHRoYXQgbi5kLiByZXN1bHRzIGxlYWQgdG8gInRyYXBwaW5nIiBpbiBhIGxvdCBvZiBsYW5n
dWFnZXMuIFRoZXJlIGFyZSBzb21lLCBsaWtlIEFEQSwgb3IgUExJLCB3aGVyZSB5b3UgY2FuIGhh
bmRsZSBlcnJvcnMgaW4gYW4gIk9uIEVycm9yIiByb3V0aW5lLC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
ZSBzb21lIGRlbGF5LCBpbiBwYXJ0aWN1bGFyIG92ZXIgd2Vla2VuZHMgb3J9fQAgd29yZCAiaGVs
cCIgdA=


----boundary-LibPST-iamunique-1629164617_-_---
Received on Tue Sep 14 2004 - 14:29:35 UTC

This archive was generated by hypermail 2.3.0 : Thu Sep 26 2013 - 06:28:37 UTC