Path: utzoo!utgpu!jarvis.csri.toronto.edu!clyde.concordia.ca!uunet!aplcen!samsung!zaphod.mps.ohio-state.edu!uwm.edu!rutgers!mcnc!uvaarpa!hudson!astsun.astro.Virginia.EDU!gsh7w From: gsh7w@astsun.astro.Virginia.EDU (Greg S. Hennessy) Newsgroups: comp.lang.c Subject: Re: problems/risks due to programming language, stories requested Message-ID: <2670@hudson.acc.virginia.edu> Date: 4 Mar 90 00:53:35 GMT References: <1004@micropen> <8218@hubcap.clemson.edu> Sender: news@hudson.acc.virginia.edu Reply-To: gsh7w@astsun.astro.Virginia.EDU (Greg S. Hennessy) Organization: University of Virginia, Charlottesville Lines: 15 In article <8218@hubcap.clemson.edu> billwolf%hazel.cs.clemson.edu@hubcap.clemson.edu writes: # The difference is that Ada takes care of exiting the case statement # for you, whereas C requires (unsafely) that you use a break to avoid # being sucked into the code associated with subsequent cases. I am wondering, how would you code Duff's device in Ada? -Greg Hennessy, University of Virginia USPS Mail: Astronomy Department, Charlottesville, VA 22903-2475 USA Internet: gsh7w@virginia.edu UUCP: ...!uunet!virginia!gsh7w