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,5b27ffedba54a4a2 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2001-03-07 08:04:05 PST Path: supernews.google.com!sn-xit-03!supernews.com!cyclone-sf.pbi.net!63.208.208.143!feed2.onemain.com!feed1.onemain.com!news-out.cwix.com!newsfeed.cwix.com!newsfeed.mathworks.com!cyclone.swbell.net!bos-service1.ext.raytheon.com!cambridge1-snf1.gtei.net!news.gtei.net!inmet!not-for-mail From: Tucker Taft Newsgroups: comp.lang.ada Subject: Re: JGNAT and Null references Date: Wed, 07 Mar 2001 11:02:41 -0500 Organization: AverStar (formerly Intermetrics) Burlington, MA USA Message-ID: <3AA65BA1.E4D86741@averstar.com> References: <3A9E77D4.D40FEAA@earthlink.net> <3AA151BF.C9193700@earthlink.net> NNTP-Posting-Host: nebula.burl.averstar.com Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: inmet2.burl.averstar.com 983980961 29068 141.199.8.77 (7 Mar 2001 16:02:41 GMT) X-Complaints-To: usenet@inmet2.burl.averstar.com NNTP-Posting-Date: 7 Mar 2001 16:02:41 GMT X-Mailer: Mozilla 4.75 [en] (X11; U; SunOS 5.7 sun4u) X-Accept-Language: en Xref: supernews.google.com comp.lang.ada:5504 Date: 2001-03-07T16:02:41+00:00 List-Id: Randy Brukardt wrote: > > Marc A. Criley wrote in message <3AA151BF.C9193700@earthlink.net>... > >Uh...it did work. Cleared up the problem just fine. That it works > >doesn't totally sit well with me, since my purist mental picture of a > >"constant" involves only a value, and not storage. Nonetheless, > > > > Null_Icon : constant Javax.swing.TabbedPanel.ref := null; > > > >was accepted by the AddTab procedure call. > > But does it run? The RM 4.6(49) says that an access parameter cannot be > null, and must raise Constraint_Error. If it does run, you're using a > compiler bug (or "feature"); your code won't be portable... There was discussion of avoiding the null check when interfacing with code from some other language (e.g. C or Java). Given that the rules for making Java-convention calls are not standardized at this point, so long as there is an explicit (or implicit?) Java convention on the routines, JGNAT can do what it wants at this point. > > Randy. -- -Tucker Taft stt@avercom.net http://www.averstar.com/~stt/ Chief Technology Officer, AverCom Corporation (A Titan Company) Burlington, MA USA (AverCom was formerly the Commercial Division of AverStar: http://www.averstar.com/services/ebusiness_applications.html)