help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

warning: variable switch label


From: Søren Hauberg
Subject: warning: variable switch label
Date: Sat, 01 Jul 2006 14:26:27 +0200

Hi,
  In 2.9.6 I get a warning that I really don't understand. If I have a
switch statement such as this one:

switch "a"
  case {"a", "b"} disp("hello")
endswitch

I get this warning:

warning: variable switch label

I get that the problem is the {"a", "b"} part of the statement. But was
is it that I'm being warned against?

Cheers,
Søren




reply via email to

[Prev in Thread] Current Thread [Next in Thread]