Casting to unsigned char for isupper() and friends

R

Richard Heathfield

CBFalconer said:
I can remember raising it, which is why my comment above.

Ah well - so much for the length of my recall.
But I see no point to arguing about it.

Nor I.
I simply stated my opinion.

"follow it with a blank" doesn't, to my mind, have the ring of a
statement of opinion. It sounds more like an instruction.
 
A

Army1987

Keith Thompson said:
True, but else is seldom a problem. I don't think I've ever seen an
else immediately followed by a left parenthesis. At least, I hadn't
until a couple of minutes ago, when I write this silly little program:

#include <stdio.h>
int main(int argc, char **argv)
{
if (argc == 1)
puts("No arguments");
else(puts("One or more arguments"));
return 0;
}

(Or I could have added a cast to void rather than enclosing the entire
call in parentheses.)

Why the hell?
else puts("One or more arguments");
wasn't fine enough?
 
C

Chris Dollin

Army1987 said:
Why the hell?
else puts("One or more arguments");
wasn't fine enough?

It wouldn't have been a demonstration of "else immediately followed by a
left parenthesis", that which Keith hadn't seen until he wrote it - as
is evident in the text I (and you) quoted.

--
JUC 2007, submit: http://hpl.hp.com/conferences/juc2007/submission.html
"If there is a problem, you must confess it, Mr Chaplin."/The Beiderbeck Affair/

Hewlett-Packard Limited Cain Road, Bracknell, registered no:
registered office: Berks RG12 1HN 690597 England
 
C

CBFalconer

Richard said:
CBFalconer said:

Ah well - so much for the length of my recall.


Nor I.


"follow it with a blank" doesn't, to my mind, have the ring of a
statement of opinion. It sounds more like an instruction.

Look at the prefix.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,581
Members
45,057
Latest member
KetoBeezACVGummies

Latest Threads

Top