Andrei Pelinescu-Onciul writes:
There are the following restriction:
- case labels must be static (no vars allowed)
- in the same switch you can have only one type of case labels: strings
or integers (1)
- the first case label sets the required type for all the others
(so if your first case label is a string => all the other must be
strings, if it's an integer all the other must be integers).
andrei,
thanks for the above implementation. the restrictions are fine with me,
-- juha