[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #31793] case statement required for otherwise
From: |
Rik |
Subject: |
[Octave-bug-tracker] [bug #31793] case statement required for otherwise to be used in a switch |
Date: |
Tue, 07 Dec 2010 19:03:37 +0000 |
User-agent: |
Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.12) Gecko/20101027 Ubuntu/9.10 (karmic) Firefox/3.6.12 |
Follow-up Comment #3, bug #31793 (project octave):
The patch works. However, I have a slightly different question. If I
reverse the order of otherwise and the first case statement I get 2 parse
errors in a row. I know this is disallowed, but shouldn't it produce just one
parse error? It's obviously not critical but if it were easy to fix that
would be nice as well. Interestingly, if I use 'source tst_switch.m' , rather
than calling the file with 'tst_switch', I get only one parse error. I've
attached the trivial script in question.
Test Sequence
tst_switch
parse error near line 2 of file
/home/rik/wip/Projects_Mine/octave-bugs/switch_otherwise/tst_switch.m
syntax error
>>> otherwise
^
parse error near line 2 of file
/home/rik/wip/Projects_Mine/octave-bugs/switch_otherwise/tst_switch.m
syntax error
>>> otherwise
^
(file #22146)
_______________________________________________________
Additional Item Attachment:
File name: tst_switch.m Size:0 KB
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?31793>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/