Re: SWITCH question

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

simply (and not really very helpfully) effectively just ignoring the second branch, whereas

switch x do 
case 17: ?"x is 17" 
case 17: ?"x is 17 as well" 
end switch 



The compiler will not allow two cases with the save value. All this is very good; but, my original problem with SWITCH was that the value of case constants was being changed during the execution of the method. This leads to real problems.

Regards,
jd

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

Search



Quick Links

User menu

Not signed in.

Misc Menu