Re: Generic symbolic sequence assignment
- Posted by DerekParnell (admin) Nov 19, 2011
- 1332 views
bill said...
This whole assignment thing is getting out of hand.
According to the manual (and how much user-code?)
{a,b,c} = {d,e,f} returns {a=d,b=e,c=f}
Surely you don't want to break something as basic as that merely to have multiple and/or generic assignment!
I see your point, but the example you have is out of context. The '=' symbol here is not an assignment operator but a comparison operator.
sequence x x = {a,b,c} = {d,e,f} -- The first '=' is assignment, the 2nd is comparison. x = {a=d, b=e, c=f} -- Result in x is a set of 1's and 0's. -- Similar to ... x = {a,b,c} < {d,e,f} x = {a<d, b<e, c<f} -- Result in x is a set of 1's and 0's. -- Currently this next line is invalid in Eu {a,b,c} = {d,e,f} -- An assignment, not a comparison