Michael Somos on Wed, 23 Oct 2002 13:28:19 -0400


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

gp: Vecsmall("abc") suggestion


pari-dev,

      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. Shalom, Michael