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 X-Google-Thread: 103376,af5bf4e3cf0c28b8 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2001-05-30 07:01:03 PST Path: archiver1.google.com!newsfeed.google.com!newsfeed.stanford.edu!bloom-beacon.mit.edu!nycmny1-snh1.gtei.net!cpk-news-hub1.bbnplanet.com!news.gtei.net!opentransit.net!proxad.net!oleane.net!oleane!setranews.setra.fr!not-for-mail From: Claude SIMON Newsgroups: comp.lang.ada Subject: Re: Cannot use NULL as identifier? Date: Wed, 30 May 2001 15:58:16 +0200 Organization: SETRA - CTOA Message-ID: <3B14FC78.A3294E55@setra.fr> References: NNTP-Posting-Host: calamar.setra.fr Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Trace: setranews.setra.fr 991231018 9627 161.48.101.33 (30 May 2001 13:56:58 GMT) X-Complaints-To: usenet@setranews.setra.fr NNTP-Posting-Date: 30 May 2001 13:56:58 GMT X-Mailer: Mozilla 4.7 [fr] (WinNT; I) X-Accept-Language: fr Xref: archiver1.google.com comp.lang.ada:7876 Date: 2001-05-30T13:56:58+00:00 List-Id: May be ASCII.NUL is best than ASCII.NULL McDoobie a �crit : > I've written a small program that parses the contents of different > directories and searches for duplicate files. > > I have an assignment that reads > > FilePath : constant string := "tesfile.xxx" & ASCII.NULL; > > Now, the GNAT compiler on Linux gives me the error > "reserved word NULL cannot be used as identifier " > > Now, I'm using the text_io and gnat.os_lib libraries to compile this, so > I'm assuming that os_lib makes an allowance for this. However, I could be > mistaken. I ripped the above code fragement from a website, and the > website (the Big Book of Linux Ada programming) doesnt appear to indicate > that theres a problem with this. (Of course I probably overlooked > something.) > > I'm also searching through "Programming in Ada95"(Barnes) trying to find > info on this error. > > Any tips or pointers would be helpful. > > Thanks. > > McDoobie > Chris@dont.spam.me