From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,a50a3c40267219cc X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2001-10-15 15:52:25 PST Newsgroups: comp.lang.ada Path: archiver1.google.com!news1.google.com!sn-xit-02!supernews.com!newsfeed.direct.ca!look.ca!feed2.onemain.com!feed1.onemain.com!uunet!dca.uu.net!ash.uu.net!xyzzy!nntp From: Jeffrey Carter Subject: Re: The caselessness is one of the things I like best! X-Nntp-Posting-Host: e246420.msc.az.boeing.com Content-Type: text/plain; charset=us-ascii Message-ID: <3BCB673A.11FD06D@boeing.com> Sender: nntp@news.boeing.com (Boeing NNTP News Access) Content-Transfer-Encoding: 7bit Organization: The Boeing Company X-Accept-Language: en References: <9qf6pp$36a$1@nh.pace.co.uk> Mime-Version: 1.0 Date: Mon, 15 Oct 2001 22:46:18 GMT X-Mailer: Mozilla 4.73 [en]C-CCK-MCD Boeing Kit (WinNT; U) Xref: archiver1.google.com comp.lang.ada:14617 Date: 2001-10-15T22:46:18+00:00 List-Id: Marin David Condic wrote: > > Hmmmmmm..... Just tried this with gcc: > > ui32 Event_Code = k_pmsg_Display_Start ; > ....and then..... > event_code = k_pmsg_Display_Start ; > > Got the following complaint: > > msgeas/Msg_Display.cpp: In function `void dis_Show_Window(struct > Msg_Display_Type &)': > msgeas/Msg_Display.cpp:359: `event_code' undeclared (first use this > function) > > There may be conditions under which differences in character case go > undetected, but its not quite the case where undeclared variables just get > created. I have used C compilers that do not give warnings for undeclared variables by default; they are silently created as type int. I don't know if this is still legal for standard C. -- Jeffrey Carter