Michael Somos on Sun, 7 Nov 1999 14:52:45 -0500 (EST) |
[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]
Re: if-bug |
Leonhard Moehring wrote : > ? if([1]==1,) > *** forbidden addition t_INT + t_VEC. > Seems like a bug to me. Actually, no. It is a feature. You can multiply or divide a vector by a scalar, but not add or subtract. In this case, comparison is in the same class as addition, hence is not allowed. Thus we get : %1 = [1] gp> [1]+1 *** forbidden addition t_INT + t_VEC. gp> [1]==1 *** forbidden addition t_INT + t_VEC. Shalom, Michael