My point was of course that case independence makes all of 'no', 'nO',
'No', 'NO' interchangeable in use. In PL/I one writes, say,
arg = lower(argument) ;
match = (arg = 'no') ;
or, indifferently,
arg = upper(argument) ;
match = (arg = 'NO') ;
The same thing can be done in C, using all but identical assignment
statements (although the variable declarations for them must be
different). Moreover, since Paul Gilmartin raised the issue, I will
add that this is a fortiori possible in assembly language too.
It is of course true that
match = (arg = 'no') | (arg = 'nO') | (arg = 'No')
| arg = ('NO') ;
is longer than it would be if the term (arg = 'nO') were omitted, but
I would dispense with the services of a programmer who wrote such
things.
I am delighted that Charles found a solution to his problem.
John Gilmore, Ashland, MA 01721 - USA
Avant d'imprimer cet e-mail, réfléchissons à l'impact sur l'environnement.
----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN