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,6122265fe3a60a37,start X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2001-06-06 09:11:25 PST Path: archiver1.google.com!newsfeed.google.com!newsfeed.stanford.edu!skynet.be!freenix!fr.usenet-edu.net!usenet-edu.net!ciril.fr!univ-lille1.fr!news.cict.fr!not-for-mail From: Valdes Newsgroups: comp.lang.ada Subject: Some problems with string type Date: Thu, 07 Jun 2001 04:18:08 +0200 Organization: Inconnue Message-ID: <3B1EE460.D08AD019@wanadoo.fr> NNTP-Posting-Host: galba.edu.ups-tlse.fr Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Trace: news.cict.fr 991843882 12506 195.220.39.59 (6 Jun 2001 16:11:22 GMT) X-Complaints-To: postmaster@cict.fr NNTP-Posting-Date: 6 Jun 2001 16:11:22 GMT X-Mailer: Mozilla 4.7 [fr] (WinNT; I) X-Accept-Language: fr Xref: archiver1.google.com comp.lang.ada:8238 Date: 2001-06-06T16:11:22+00:00 List-Id: I have my program writen in Ada that raise some exceptions: raised CONSTRAINT_ERROR : gestindex.adb:5 ... And at line 5... function createindex (S:string) return index is I:Index; begin i.nameindex:=s; -- Ligne cinq i.firstletter:=null; return i; end createindex; ... The index record is defined as follow... type index is record nameindex:String(1..20); firstletter:ptrletter; end record; ... The mistake seems to be trivial but I don't see it. I have seen the same for this also: Ptrtemp.Letter:=Charat(M,Ni); there is the same error but Charat return a character and letter is also one. (ptrtemp is also type ptrlettre) All my greetings if you have some ideas. And forgive me for my bad english. -- Le Vif Z�phyr Jubile Sur Les Kumquats Du Clown Gracieux.