1. a typo in the referenc manual?
- Posted by SunPsych08 Dec 01, 2015
- 1214 views
Unless i've misunderstood something about how the switch statement works, i think there's a typo in the documentation that could mislead the reader:
in "User Manual" for oE v4.0, 2012-10-13, pdf file, p71, just before heading "17.3 ifdef statement", and
in oe41-refman.pdf, 2/8/15, p79, again just before heading "ifdef statement"
Should it read:
"if opt is 2 and alt is "Y" then it runs...
FuncB() FuncD() FuncF() FuncM()" ?
Please correct me if i'm wrong!
Alex
2. Re: a typo in the referenc manual?
- Posted by _tom (admin) Dec 01, 2015
- 1171 views
Unless i've misunderstood something about how the switch statement works, i think there's a typo in the documentation that could mislead the reader:
in "User Manual" for oE v4.0, 2012-10-13, pdf file, p71, just before heading "17.3 ifdef statement", and
in oe41-refman.pdf, 2/8/15, p79, again just before heading "ifdef statement"
Should it read:
"if opt is 2 and alt is "Y" then it runs...
FuncB() FuncD() FuncF() FuncM()" ?
Please correct me if i'm wrong!
Alex
My version is:
procedure ProcA() printf(1, "A " ) end procedure procedure ProcB() printf(1, "B " ) end procedure procedure ProcC() printf(1, "C " ) end procedure procedure ProcD() printf(1, "D " ) end procedure procedure ProcE() printf(1, "E " ) end procedure procedure ProcF() printf(1, "F " ) end procedure procedure ProcG() printf(1, "G " ) end procedure procedure ProcH() printf(1, "H " ) end procedure procedure ProcM() printf(1, "M " ) end procedure procedure testswitch( atom opt, atom alt ) switch opt label " LBLa " do case 1 , 5 , 8 then ProcA () case 4 , 2 , 7 then ProcB () switch alt label " LBLb " do case 'X' then ProcC () break " LBLa " case 'Y' then ProcD () case else ProcE () end switch ProcF () case 3 then ProcG () break case else ProcH () end switch ProcM () printf(1, "\n ----------------- \n" ) end procedure testswitch( 2, 'X' ) --> B C M testswitch( 2, 'Y' ) --> B D F M
thanks
_tom
3. Re: a typo in the referenc manual?
- Posted by ChrisB (moderator) Dec 05, 2015
- 1156 views
Hi
Is this what you call an oxymoron?
Chris