Re: New switch/case idea

new topic     » goto parent     » topic index » view thread      » older message » newer message
jemima said...
jeremy said...
Fernando said...
X = 1 
condition = 1 
switch X do 
   case 1 then 
      if condition then break end if 
      X = 2 
end switch 
? X 

If that is valid, what will be showed ?

That will print 2.

You have clearly all gone stark raving bonkers...

What happened to the concept of READABLE code???

I think you are ignoring the fact that these examples are merely proof of concept. There are many circumstances where code will appear to be less than perfectly efficient, but will be perfectly appropriate because it self-documents a process which mimics the real world. Substitute "IRS_audits_me" for condition and then see if you don't want a placeholder in your code as you design, and debug, a complete response.

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

Search



Quick Links

User menu

Not signed in.

Misc Menu