Re: Generic symbolic sequence assignment

new topic     » goto parent     » topic index » view thread      » older message » newer message
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  
new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu