Karim BELABAS on Tue, 7 Jan 2003 20:50:25 +0100 (MET)


[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

Re: gp: gcd(0) error message unhelpful


On Tue, 7 Jan 2003, Bill Allombert wrote:
> One side remark: the use of err(typer,) force the format of the error
> message. This mildly annoying, because using typer is more
> helpful for trap() users than talker, but that reduces the
> usefulness of the error message.

To some extent. You can still use

  err(typeer, "associative operation (data must be a vector type)")


Only formats (and PARIformats) are forbidden: so you can't do

  err(typeer, "associative operation (data must be a vector type).\nOffending
arg was: %Z", x)

but it would be trivial to support this (in the err() switch, move typeer to
the 'talker & al' case)  [ Caveat: messages containing % would now need
special care ].

Cheers,

    Karim.
-- 
Karim Belabas                    Tel: (+33) (0)1 69 15 57 48
Dép. de Mathématiques, Bât. 425  Fax: (+33) (0)1 69 15 60 19
Université Paris-Sud             Email: Karim.Belabas@math.u-psud.fr
F-91405 Orsay (France)           http://www.math.u-psud.fr/~belabas/
--
PARI/GP Home Page: http://www.parigp-home.de/