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-Thread: 103376,1c1739e9e6a4a7c5 X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news1.google.com!news4.google.com!news.glorb.com!newsfeed.cw.net!cw.net!news-FFM2.ecrc.de!newsfeed01.sul.t-online.de!t-online.de!newsfeed.arcor.de!news.arcor.de!not-for-mail Date: Tue, 21 Feb 2006 16:52:49 +0100 From: Georg Bauhaus Organization: future apps GmbH User-Agent: Debian Thunderbird 1.0.2 (X11/20051002) X-Accept-Language: en-us, en MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: binding to C: popen References: <43fb258f$0$170$edfadb0f@dread11.news.tele.dk> <1140535533.025063.163680@g14g2000cwa.googlegroups.com> <43fb35a4$0$178$edfadb0f@dread11.news.tele.dk> In-Reply-To: <43fb35a4$0$178$edfadb0f@dread11.news.tele.dk> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Message-ID: <43fb374a$0$13593$9b4e6d93@newsread2.arcor-online.net> NNTP-Posting-Date: 21 Feb 2006 16:52:42 MET NNTP-Posting-Host: ba64c9da.newsread2.arcor-online.net X-Trace: DXC=Y48e=@OATo[YFAnNd=0_4TQ5U85hF6f;TjW\KbG]kaMXQc4L4[MA2TPQgMfSD\QN^QUUng9_FXZ=S>:=P9Ihe`BX@Z?dZ]MOidU X-Complaints-To: usenet-abuse@arcor.de Xref: g2news1.google.com comp.lang.ada:3041 Date: 2006-02-21T16:52:42+01:00 List-Id: Poul-Erik Andreasen wrote: > Yes but a C pointer is in Ada represented as system.address and i can > not test that for O the the systems.address_image gives 0804C060 and if > that is a stadart c value for a null-pointer things are fine, but that > seems to be a hack. System.Null_Address, or Interfaces.C.Strings.Null_Ptr perhaps? You could consider writing a predicate like fucntion is_null(p: System.Address) return Boolean; in order to have the comparison in one place only. HTH, Georg