> Le 26 mars 2020 à 21:49, Benoit SCHILDKNECHT <bensor...@neuf.fr> a écrit :
>
> A semi-colon is terminal. Italways is. "You see this set of instructions?
> Done.". But in this case, itis not. You see the problem?
>
No I don’t see the problem. Inside a switch construct, when you reach the end
of an instruction (or of a set of instructions) that is not (resp. does not end
with) a control-flow statement, you pass to the next one. I’m sure that
everybody knows that you have to use an explicit control-flow statement like
“break” or “return” if you want to be “done” before reaching the bottom of the
switch construct.
Or maybe people could misguess that “;” in that context is an odd way to mean
“: break;”?
—Claude
--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php