[comp.lang.c] Vaguely related to case-sensitivity...

isbell@pyr.gatech.EDU ( Charles L. Isbell) (04/23/89)

Hmmmmm, I think I prefer a language that doesn't force me to use a certain case
(like Modula-2, that requires that all keywords be UPPER CASE, which I find
both irriating and unreadable).

That said, will C recognize while, WHILE, and While (as well as whIle) as being
the same thing?

Charles

-- 
Paranoia is just good thinking when everyone is out to get you!
Tech made me do this... no, no, really, its all MINE MINE MINE!!!
uucp: ...!{akgua,allegra,amd,hplabs,ihnp4,seismo,ut-ngp}!gatech!gitpyr!isbell
ARPA: isbell@pyr.gatech.edu

krazy@claris.com (Jeff Erickson) (04/24/89)

From article <8001@pyr.gatech.EDU>, by isbell@pyr.gatech.EDU ( Charles L. Isbell):
> Hmmmmm, I think I prefer a language that doesn't force me to use a certain
> case (like Modula-2, that requires that all keywords be UPPER CASE, which I 
> find both irriating and unreadable).

Agreed!  What version of Mod2 are you using?  The one I learned made no
such requirement.  (In fact, I used to _penalize_ students for doing that
when I was a lab assistant in college.)

> That said, will C recognize while, WHILE, and While (as well as whIle) as 
> being the same thing?

No. It won't.
-- 
Jeff Erickson       Claris Corporation  | Birdie, birdie, in the sky,
408/987-7309      Applelink: Erickson4  |   Why'd you do that in my eye?
krazy@claris.com     ames!claris!krazy  | I won't fret, and I won't cry.
       "I'm a heppy, heppy ket!"        |   I'm just glad that cows don't fly.

henry@utzoo.uucp (Henry Spencer) (04/25/89)

In article <8001@pyr.gatech.EDU> isbell@pyr.gatech.EDU ( Charles L. Isbell) writes:
>...will C recognize while, WHILE, and While (as well as whIle) as being
>the same thing?

No.  Spelling must be consistent, and keywords are recognized only when
in lowercase.
-- 
Mars in 1980s:  USSR, 2 tries, |     Henry Spencer at U of Toronto Zoology
2 failures; USA, 0 tries.      | uunet!attcan!utzoo!henry henry@zoo.toronto.edu