Re: Switch question - yet again!
- Posted by jessedavis Sep 28, 2016
- 11550 views
_tom said...
There is a mystery here which I can't explain.
_tom
This started out because I tried to use the stack feature spelled out in section 8.33.
Using the stack type definition causes a different error in the switch statement:
C:\Users\Jesse\Software\Euphoria\lexer\z.exw:16 <0091>:: found variable but expected 'else', an atom, string, constant or enum case op then ^
This in response to using:
stack op = st:new(FILO) --create a new stack item
So, I tried declaring it to be a constant type instead, producing the even worse program crash.
Anyway, thanks for you help.
regards,
jd