Path: csiph.com!optima2.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!us.feeder.erje.net!newsfeed.fsmpi.rwth-aachen.de!newsfeed.straub-nv.de!eternal-september.org!feeder.eternal-september.org!mx02.eternal-september.org!.POSTED!not-for-mail From: Keith Thompson Newsgroups: comp.lang.c Subject: Re: Readability part I - code Date: Sat, 11 Jul 2015 17:35:25 -0700 Organization: None to speak of Lines: 16 Message-ID: References: <0732ecd7-ce43-47c6-a56f-7bce91b1d71e@googlegroups.com> <9b8b0043-1a3e-48ac-ae34-7af8a97c455b@googlegroups.com> <87h9pbuioh.fsf@bsb.me.uk> <87a8v2tngv.fsf@bsb.me.uk> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Injection-Info: mx02.eternal-september.org; posting-host="945944de09706c9b4e29b53c9d2efdc2"; logging-data="18515"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX199XXPS1H9I6hiUnDeBmPbi" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1 (gnu/linux) Cancel-Lock: sha1:S+ktLuU+KSFDVBStwO7+HL06zu0= sha1:7dJqe9ZsIRA8wag3eNJPrE0aMuU= Xref: csiph.com comp.lang.c:65378 Bartc writes: [...] > That reminds me - I still have the construct (n|a,b,c,...|z) to select > the nth value from a list, but I haven't managed to express that in C > yet. I might have to use that gcc extension after all as it calls for a > switch statement inside an expression.) (int[]){a, b, c}[n] Though it creates an array object, which might be overkill. -- Keith Thompson (The_Other_Keith) kst-u@mib.org Working, but not speaking, for JetHead Development, Inc. "We must do something. This is something. Therefore, we must do this." -- Antony Jay and Jonathan Lynn, "Yes Minister"