Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > C Programming > switch and many case's. Any caveats?

Reply
Thread Tools

switch and many case's. Any caveats?

 
 
Tim Rentsch
Guest
Posts: n/a
 
      05-21-2012
Ben Bacarisse <> writes:

> Tim Rentsch <> writes:
>
>> Ben Bacarisse <> writes:

[snip]
>>
>>> The "Oxford Dictionary of American Usage and Style" does not include
>>> this use of the apostrophe. The only use of an apostrophe for plurals
>>> is its use "to mark the plural of an acronym, number, or letter".

>>
>> All of these more or less correspond to the principle I am trying
>> to convey here - a word-as-word, or keyword, is treated as if it
>> were a single ideogram.

>
> Right. But I cut the quote off. It goes on to say that it's now more
> usual to drop the apostrophe (except for letters).


That is good to know. Thank you.

>>> Fowler does not mention it.

>>
>> You definitely outclass me in knowledge of matters style.
>>
>> However, I didn't learn much from this statement, without
>> knowing what else Fowler might have to say about usage
>> when writing about words as text. I suppose I should
>> spend some time reading Fowler now for my own further
>> education if nothing else.

>
> Turns out I was wrong, so no "outclassing" is possible. The apostrophe
> for some plurals *is* mentioned, but in a section on possessives:
>
> mps, the 1990s, etc. The apostrophe is no longer normally used in the
> plural of abbreviated forms (e.g. Several MPs were standing around),
> although it is of course used in the possessive (e.g. The BBC's
> decision to go ahead with the broadcast). It is used in plurals when
> clarity calls for it, e.g. Dot your i's and cross your t's.
>
> That's all. Much the same as the other advice, and nothing specifically
> about textual references.


For me that last quoted sentence is key, because the motivation
for using an apostrophe in the first place was clarity, ie, to
distinguish between a word used in its normal English sense and
the same "word" but used with a different, technical meaning.
 
Reply With Quote
 
 
 
 
Old Wolf
Guest
Posts: n/a
 
      05-23-2012
On May 9, 6:50*am, Test <test@.nil.invalid.com> wrote:
> where I have a couple hundred case's. Does this degrade performance and if so
> what would a better way?


It's a heck of a lot better than:
GOTO 400*(I=0)+440*(I=1)+490*(I=2)+600*(I=3)+630*(I=4)+
....
+6675*(I=213)

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
trunking between Cisco Catalyst 500 switch and other type of switch jshubo@yahoo.com Cisco 3 01-19-2008 12:10 AM
501 PIX "deny any any" "allow any any" Any Anybody? Networking Student Cisco 4 11-16-2006 10:40 PM
Is a frame switch and an ISDN switch really needed? owmanstubbedmytoe Cisco 2 12-05-2004 07:15 AM
difference b/w layer 2 switch and layer 3 switch praveen Cisco 1 10-22-2003 07:19 AM
switch hub and switch will NZ Computing 6 10-19-2003 10:12 PM



Advertisments