Page 1 of 1

Addition operator is not commutative

Posted: Fri Aug 28, 2009 8:11 am
by Sander
The following code constructs vectors v1 and v3, but results in an error message for the lines which should construct v2 and v4.

Code: Select all

vector(1) v0
scalar alpha = 1
!a = 1

vector v1 = v0+alpha
vector v2 = alpha+v0

vector v3 =  v0+!a
vector v4 = !a+v0


Hence, the first (left) variable for the addition operator needs to be of the final type.

Re: Addition operator is not commutative

Posted: Fri Aug 28, 2009 8:23 am
by EViews Gareth
Yep, that one has been on my list to fix for a while. I'll see if we can get it fixed for EViews 7