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,af5bf4e3cf0c28b8 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2001-05-30 06:35:36 PST Path: archiver1.google.com!newsfeed.google.com!newsfeed.stanford.edu!newsfeed.gamma.ru!Gamma.RU!news.algonet.se!newsfeed1.telenordia.se!algonet!uab.ericsson.se!erix.ericsson.se!newstoo.ericsson.se!not-for-mail From: "Petter Fryklund" Newsgroups: comp.lang.ada Subject: Re: Cannot use NULL as identifier? Date: Wed, 30 May 2001 15:33:51 +0200 Organization: ericsson Message-ID: <9f2s0c$c05$1@newstoo.ericsson.se> References: NNTP-Posting-Host: 172.17.76.206 X-Newsreader: Microsoft Outlook Express 4.72.2106.4 X-MimeOLE: Produced By Microsoft MimeOLE V4.72.2106.4 Xref: archiver1.google.com comp.lang.ada:7873 Date: 2001-05-30T15:33:51+02:00 List-Id: This is perhaps not the best and most efficient solution, but it works: with Ada.Characters.Latin_1; ... ... FilePath : constant string := "tesfile.xxx" & Ada.Characters.Latin_1.Nul; McDoobie wrote in message ... >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