Re: switch statement - case doesn't accept sequence elements?

new topic     » goto parent     » topic index » view thread      » older message » newer message
evanmars said...

Is this a bug? Cannot use a sequence element for the 'case' comparison.

According to the manual, "The <val> in a case must be either an atom, literal string, constant or enum." I guess "atom" doesn't mean an element of a sequence that happens to be an atom? I have run into this as well, except i was trying to use an element of a sequence that was a string. I had to use an if statement in cases like this.

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

Search



Quick Links

User menu

Not signed in.

Misc Menu