[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: |
Wed, 08 Dec 2010 04:41:28 +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 #5, bug #31793 (project octave):
One final test case along the lines of the last one. If I run tst_switch
with the case/otherwise in the correct order it works. Now, with Octave still
open, modify the file tst_switch.m in an external editor and put the otherwise
block before the case block. Finally, try re-running tst_switch. Octave
correctly detects that the script has changed and re-parses it, but now I get
3 parse errors on the same line. After the first calling instance Octave
quiets down again and subsequent calls to tst_switch produce only 1 parse
error.
Sequence:
tst_switch2
default_something = 1
... Edit tst_switch2 to have otherwise in front of case block ...
tst_switch2
parse error near line 4 of file
/home/rik/wip/Projects_Mine/octave-bugs/switch_otherwise/tst_switch2.m
syntax error
>>> case 1
^
parse error near line 4 of file
/home/rik/wip/Projects_Mine/octave-bugs/switch_otherwise/tst_switch2.m
syntax error
>>> case 1
^
parse error near line 4 of file
/home/rik/wip/Projects_Mine/octave-bugs/switch_otherwise/tst_switch2.m
syntax error
>>> case 1
^
--
(file #22157)
_______________________________________________________
Additional Item Attachment:
File name: tst_switch2.m Size:0 KB
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?31793>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/