
1 Oct
2002
1 Oct
'02
4:08 p.m.
On Tue, 1 Oct 2002, Roberto Bagnara wrote:
These methods, and the corresponding functions taking the argument as a const numeric& parameter, when something goes wrong print a line of the form
Not a 32-bit integer: -9223372028264841216
on cerr and exit the program. Wouldn't throwing a suitable standard exception (like std::domain_error) be a better option?
Not really. We want them to be fast. They are intended for use in main loops only and if you look into the code you'll see that we don't even check whether they are actual integers. The programmer should care about that...
Regards -richy.
--
Richard B. Kreckel
Richard.Kreckel@GiNaC.DE
http://www.ginac.de/~kreckel/