Karim BELABAS on Fri, 19 Sep 2003 17:55:04 +0200 (MEST)


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

Re: peculiar Set/eval behavior


On Fri, 19 Sep 2003, Igor Schein wrote:
> ? Set([0,matid(2),matid(3)])
> ["
> [1 0 0]
>
> [0 1 0]
>
> [0 0 1]
> ", "
> [1 0]
>
> [0 1]
> ", "0"]
> ? eval(%)
>   ***   array index (10) out of allowed range [1]: [100][010][001]
>                                                          ^---------
> Maybe it's a proper behavior, but it just looks weird.

No, it's not proper.

Fixed in CVS [ make sure "raw" output format is chosen, not "prettymat" ].

    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              http://www.math.u-psud.fr/~belabas/
F-91405 Orsay (France)            http://www.parigp-home.de/  [PARI/GP]