| Karim BELABAS on Wed, 23 Oct 2002 19:39:33 +0200 (MEST) |
[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]
| Re: gp: Vecsmall("abc") suggestion |
On Wed, 23 Oct 2002, Michael Somos wrote:
> I have a little suggestion. Since 'Vecsmall()' and 'Vec()' behaves :
>
> ? Vecsmall("abc")
> *** incorrect type in vectosmall.
> ? Vec("abc")
> %1 = ["a", "b", "c"]
>
> Why not extend the behavior of 'Vecsmall()' as follows :
>
> ? Vecsmall("abc")
> %2 = Vecsmall([97, 98, 99])
>
> The code needed is already part of 'Vec()' and just needs to be slightly
> adjusted to prevent changing each character into a t_STR.
OK. Done in CVS.
Karim.
--
Karim Belabas Tel: (+33) (0)1 69 15 57 48
Dép. de Mathematiques, Bat. 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/