Dave Malcolm wrote:I'm only relating what it says in the (very confusing then) book on P117 in the section on switch expressions.
So the -> can be used in ordinary switch statements then can it?
Dave Malcolm wrote:I repeat that if what you're both saying is true then the book is awful because this is supposed to prepare people for the exam.
Mikalai Zaikin wrote:A switch can be an expression or a statement (it can be decided by the compiler by looking if the case block returns anything)
Paul Clapham wrote:a boolean