Date: Fri, 21 May 1999 05:13:02 +0000 (GMT) From: a disembodied voice emerging from the chaos of reality <cjc26@cornell.edu> To: "G. Adam Stanislav" <zen@buddhist.com> Cc: Eric Hodel <hodeleri@seattleu.edu>, "freebsd-chat@FreeBSD.ORG" <freebsd-chat@FreeBSD.ORG> Subject: Re: Music to code by Message-ID: <Pine.BSF.4.05.9905210511210.10112-100000@cjc26.resnet.cornell.edu> In-Reply-To: <3.0.6.32.19990520235835.0096b250@mail.bfm.org>
next in thread | previous in thread | raw e-mail | index | archive | help
You forgot to put a break statement in your default: block. What if someone comes along later on and adds another case statement after the default one? Chaos will ensue! On Thu, 20 May 1999, G. Adam Stanislav wrote: > At 20:12 20-05-1999 -0700, Eric Hodel wrote: > >Does anyone have a particular music that they prefer to code by? > > This algo' rythm jams for me: > > switch (music()) { > case NULL: > code(); > break; > case COUNTRY: > case RAP: > run(away); /* optimize for speed */ > break; > default: > listen(); > } > > Adam > > P.S. I understand the new ANSI C will contain the following in <music.h>: > > #define CRAP (COUNTRY | RAP) > > /* > * No offense intended to any (COUNTRY | RAP) fans > * I just personally do not care for either. > */ Cliff Crawford http://www.people.cornell.edu/pages/cjc26/ -><- i l i k e o a t m e a l )O( To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-chat" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.05.9905210511210.10112-100000>