Re: New switch/case idea

new topic     » goto parent     » topic index » view thread      » older message » newer message
kinz said...
kinz said...
BEu said...
switch X  -- pure switch 
  case a ?1 
  case b ? 
  else   ?3 
end switch 
cascade X -- instead of switch with fallthrou 
  stage a ?1 
  stage b ?2 break 
  else    ?3 
end cascade 

I saw Niagara in my dream yesterday ...

It seems to be not that bad, but I can do cyclic switch and cascade in bilingual mode ...

switch X do -- cyclic switch, thanks to 'do' keyword 
  case a ?1 
  case b X+=1 
  else exit 
end switch 
cascade X do -- cyclic caskade, thanks to 'do' keyword 
  stage a ?1 
  stage b X-=1 
  else exit 
end cascade 


BEu

Yes, I just didn't see Niagara turned up-down, up-down ...

Maybe we can delete some doubles, BEu, let's try:

try X [do] -- with 'do' cyclic, without 'do' simple one go 
  stage a ?1   -- cascadeing part  
  stage b X-=1 
  case  c ?2   -- switching part 
  case  d ?3   
  else exit 
end try 

Hmm... Hmm... Seems to work in bilingual mode too ...

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

Search



Quick Links

User menu

Not signed in.

Misc Menu