Re: How Come This Binary Op Doesn't Work?

new topic     » goto parent     » topic index » view thread      » older message » newer message

Hi,


It appears that the equals sign, when used in that context, is best
not used with sequences or when the result of another operation
might result in a sequence that gets used with the equals sign.
My guess is that other logical type operations like that dont
work either, like != for example.

The following are ok:
  ?1=1
  ?1=0
  ?0=0
while these are different:
  ?1={}
  ?{}=1
  ?{}={}
  ?1 and {}
and interesting is:
  ?1 and {23,2,0}  --{1,1,0}

Note this works ok:
temp = {}
bool = sequence(temp) and (1=1)




Take care,
Al

E boa sorte com sua programacao Euphoria!


My bumper sticker: "I brake for LED's"

 From "Black Knight":
"I can live with losing the good fight,
 but i can not live without fighting it".
"Well on second thought, maybe not."

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu