POV-Ray : Newsgroups : povray.general : fundamental question re: #switch/#case/#break : Re: fundamental question re: #switch/#case/#break Server Time
29 Jul 2024 18:25:11 EDT (-0400)
  Re: fundamental question re: #switch/#case/#break  
From: "Jérôme M. Berger"
Date: 22 Nov 2010 13:24:55
Message: <4ceab577$1@news.povray.org>
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] freefr
http://jeberger.free.fr
Jabber: jeb### [at] jabberfr


Post a reply to this message


Attachments:
Download 'us-ascii' (1 KB)

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.