Re: Switch statement case range

2012-04-13 Thread Jonathan Wakely
On 13 April 2012 16:58, Rick Hodgin wrote: > --- On Fri, 4/13/12, Jonathan Wakely wrote: >> > I was wondering if anyone had a response to this?  No >> > one responded on- or off-list, which was both surprising >> > and confusing. >> Why? What sort of response were you expecting? > > I didn't have

Re: Switch statement case range

2012-04-13 Thread Rick Hodgin
--- On Fri, 4/13/12, Jonathan Wakely wrote: > > I was wondering if anyone had a response to this?  No > > one responded on- or off-list, which was both surprising > > and confusing. > Why? What sort of response were you expecting? I didn't have a particular expectation (outside of just some kind

Re: Switch statement case range

2012-04-13 Thread Jonathan Wakely
On 13 April 2012 00:26, Rick Hodgin wrote: > I was wondering if anyone had a response to this?  No one responded on- or > off-list, which was both surprising and confusing. Why? What sort of response were you expecting? What has GCC or GNU got to do with "fraternity between nations, for the abol

Re: Switch statement case range

2012-04-12 Thread Rick Hodgin
I was wondering if anyone had a response to this? No one responded on- or off-list, which was both surprising and confusing. Thanks! :-) Best regards, Rick C. Hodgin --- On Sun, 4/8/12, Rick Hodgin wrote: > From: Rick Hodgin > > ...I think [GCC] is, without a doubt, the best GNU > project

Re: Switch statement case range

2012-04-08 Thread Rick Hodgin
nominating Richard Stallman for the Nobel Peace Prize (seriously)? Best regards, Rick C. Hodgin --- On Sun, 4/8/12, Oleg Endo wrote: > From: Oleg Endo > Subject: Re: Switch statement case range > To: "Rick Hodgin" > Cc: "Marek Polacek" , "gcc" > D

Re: Switch statement case range

2012-04-08 Thread Oleg Endo
On Sun, 2012-04-08 at 09:07 -0700, Rick Hodgin wrote: > Thank you! > > I'd like to find out some day exactly how much I _don't_ know. :-) > Knock yourself out ;) http://gcc.gnu.org/onlinedocs/gcc/C-Extensions.html Cheers, Oleg

Re: Switch statement case range

2012-04-08 Thread Rick Hodgin
Thank you! I'd like to find out some day exactly how much I _don't_ know. :-) Best regards, Rick C. Hodgin --- On Sun, 4/8/12, Marek Polacek wrote: > From: Marek Polacek > Subject: Re: Switch statement case range > To: "Rick Hodgin" > Cc: "gcc" &g

Re: Switch statement case range

2012-04-08 Thread Robert Dewar
On 4/8/2012 11:59 AM, Rick Hodgin wrote: What are the possibilities of adding a GCC extension to allow: switch (foo) { case 1: case 2: case 3 to 8: case 9: default: } in C/C++ case statements? Best regards, Rick C. Hodgin I think there is very little enthusiasm these days for adding non-stan

Re: Switch statement case range

2012-04-08 Thread Marek Polacek
On Sun, Apr 08, 2012 at 08:59:46AM -0700, Rick Hodgin wrote: > What are the possibilities of adding a GCC extension to allow: > > switch (foo) { > case 1: > case 2: > case 3 to 8: > case 9: > default: > } This already exists (and is a GNU extension): switch (foo) { case 1: break;

Re: Switch statement case range

2012-04-08 Thread Gabriel Dos Reis
On Sun, Apr 8, 2012 at 10:59 AM, Rick Hodgin wrote: > What are the possibilities of adding a GCC extension to allow: > > switch (foo) { > case 1: > case 2: > case 3 to 8: > case 9: > default: > } > > in C/C++ case statements? GCC used to have a range extension for case: case 3..8 which has b

Switch statement case range

2012-04-08 Thread Rick Hodgin
What are the possibilities of adding a GCC extension to allow: switch (foo) { case 1: case 2: case 3 to 8: case 9: default: } in C/C++ case statements? Best regards, Rick C. Hodgin