'help switch' has invalid example, or parser error
Rob Mahurin
rob at utk.edu
Tue Jul 14 08:34:14 CDT 2009
Hi,
In 3.2.0, pasting the example from 'help switch' fails with
> syntax error
>
> >>> case {"Yes" "yes" "YES" "y" "Y"}
> ^
I don't know whether the example is wrong, or whether the parser is
wrong to require a comma. Note that
> x = {"Yes" "yes" "YES" "y" "Y"};
> switch yesno; case x; ...
is accepted.
Cheers,
Rob
--
Rob Mahurin
University of Manitoba, Dept. of Physics & Astronomy
at: Oak Ridge National Laboratory 865 207 2594
Oak Ridge, Tennessee rob at utk.edu
More information about the Bug-octave
mailing list