From owner-freebsd-chat Thu May 20 22:12:27 1999 Delivered-To: freebsd-chat@freebsd.org Received: from cjc26.resnet.cornell.edu (CJC26.RESNET.CORNELL.EDU [128.253.234.103]) by hub.freebsd.org (Postfix) with ESMTP id CB7A11590F for ; Thu, 20 May 1999 22:12:24 -0700 (PDT) (envelope-from cjc26@cornell.edu) Received: from localhost (cjc26@localhost) by cjc26.resnet.cornell.edu (8.9.2/8.9.2) with ESMTP id BAA10249; Fri, 21 May 1999 01:13:02 -0400 (EDT) (envelope-from cjc26@cornell.edu) X-Authentication-Warning: cjc26.resnet.cornell.edu: cjc26 owned process doing -bs Date: Fri, 21 May 1999 05:13:02 +0000 (GMT) From: a disembodied voice emerging from the chaos of reality X-Sender: cjc26@cjc26.resnet.cornell.edu To: "G. Adam Stanislav" Cc: Eric Hodel , "freebsd-chat@FreeBSD.ORG" Subject: Re: Music to code by In-Reply-To: <3.0.6.32.19990520235835.0096b250@mail.bfm.org> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-chat@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org 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 : > > #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