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,FREEMAIL_FROM autolearn=unavailable autolearn_force=no version=3.4.4 X-Received: by 10.182.246.225 with SMTP id xz1mr1943602obc.14.1382725119114; Fri, 25 Oct 2013 11:18:39 -0700 (PDT) X-Received: by 10.50.61.200 with SMTP id s8mr88217igr.17.1382725118825; Fri, 25 Oct 2013 11:18:38 -0700 (PDT) Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!news.eternal-september.org!news.eternal-september.org!news.eternal-september.org!feeder.eternal-september.org!news.glorb.com!o2no26473174qas.0!news-out.google.com!z6ni91529pbu.0!nntp.google.com!o2no26473158qas.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Fri, 25 Oct 2013 11:18:38 -0700 (PDT) In-Reply-To: <5bae226f-91a2-4da0-a802-185a0de514f3@googlegroups.com> Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=66.126.103.122; posting-account=RxNzCgoAAACA5KmgtFQuaU-WaH7rjnAO NNTP-Posting-Host: 66.126.103.122 References: <5bae226f-91a2-4da0-a802-185a0de514f3@googlegroups.com> User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: <54232277-979e-4e76-af20-566903cac3de@googlegroups.com> Subject: Re: How to do null comparision with pointers in ADA83? From: Adam Beneschan Injection-Date: Fri, 25 Oct 2013 18:18:38 +0000 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Xref: news.eternal-september.org comp.lang.ada:17535 Date: 2013-10-25T11:18:38-07:00 List-Id: On Friday, October 25, 2013 11:12:00 AM UTC-7, seshuch...@gmail.com wrote: > Hello, >=20 > In ADA83, i could not able to do null comparision of my pointer value. > here, my pointer is of array type. >=20 > Is there any solution for this. >=20 > Thanking you in advance. We really need to see the code. But here's my first guess: When you declar= e an access type in a package, the "=3D" operator that lets you compare val= ues of the access type is also declared in the same package. In another pa= ckage, you can't use the "=3D" operator unless the names in the first packa= ge are visible. So this won't work if you're not inside package P: Acc : P.Access_Type; begin if Acc =3D null then ... You'd need to either put "use P;" somewhere, or do something like this: if P."=3D" (Acc, null) then ... or you could use a rename to make "=3D" visible if you don't want to use "u= se P": function "=3D" (Left, Right : P.Access_Type) return boolean renames P."=3D"; and now you can use =3D as an operator everywhere that this renaming declar= ation is visible. If this isn't the problem, then I think we need to see some code. -- Adam