|
![](/i/fill.gif) |
Le_Forgeron wrote:
> Traditional computational languages behave the same way:
> when no break, the instructions continue on the following lines.
> It's an old tradition.
> (a switch/case/break can be rewritten with if/table & goto... including
> a goto to exit the switch block (as break): no break, no jump.
>
Not really. Both behaviours may be seen in traditional languages: C
and its descendants (C++, Java, etc) behave like that, but other
languages behave as if there was a break for each case (this
includes Basic, Pascal and its descendants and most functional
languages if I'm not mistaken).
Jerome
--
mailto:jeb### [at] free fr
http://jeberger.free.fr
Jabber: jeb### [at] jabber fr
Post a reply to this message
Attachments:
Download 'us-ascii' (1 KB)
|
![](/i/fill.gif) |