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=-0.5 required=5.0 tests=BAYES_00,INVALID_MSGID, PP_MIME_FAKE_ASCII_TEXT autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII X-Google-Thread: 103376,a27864f6019f6e7f X-Google-Attributes: gid103376,public From: "Jean-Pierre Rosen" Subject: Re: Simpler Question (was Assigning to dereferenced null access variable) Date: 2000/11/07 Message-ID: <8u9r97$jmb$2@wanadoo.fr>#1/1 X-Deja-AN: 690944495 References: <3A05A609.4CE6@li.net> <3A0847ED.49AF@li.net> X-Priority: 3 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400 X-Complaints-To: abuse@wanadoo.fr X-Trace: wanadoo.fr 973631591 20171 193.250.72.155 (7 Nov 2000 21:13:11 GMT) Organization: Wanadoo, l'internet avec France Telecom X-MSMail-Priority: Normal NNTP-Posting-Date: 7 Nov 2000 21:13:11 GMT Newsgroups: comp.lang.ada Date: 2000-11-07T21:13:11+00:00 List-Id: "Vincent Marciante" a �crit dans le message news: 3A0847ED.49AF@li.net... >[...] > begin > Null_Sequence.The_Characters(1..0) := Null_Characters; > Put_Line("The Null_Characters assignment succeeded"); > exception > when Constraint_Error => > Put_Line("The Null_Characters assignment caused > Constraint_Error"); > --OS/2 GNAT 3.12 raises Constraint_Error > end; > end; Null_Sequence.The_Characters is a null pointer, there is no array to point to. This is what causes Constraint_Error, nothing to do with the assignment. -- --------------------------------------------------------- J-P. Rosen (Rosen.Adalog@wanadoo.fr) Visit Adalog's web site at http://pro.wanadoo.fr/adalog