comp.lang.ada
 help / color / mirror / Atom feed
From: "Randy Brukardt" <randy@rrsoftware.com>
Subject: Re: JGNAT and Null references
Date: Sat, 3 Mar 2001 20:46:49 -0600
Date: 2001-03-03T20:46:49-06:00	[thread overview]
Message-ID: <Q0io6.3825$7e6.1514539@homer.alpha.net> (raw)
In-Reply-To: 3AA151BF.C9193700@earthlink.net

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...

        Randy.





  reply	other threads:[~2001-03-04  2:46 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-03-01 17:23 JGNAT and Null references Marc A. Criley
2001-03-01 18:10 ` James Rogers
2001-03-02 19:27 ` Stephen Leake
2001-03-03 21:17   ` Marc A. Criley
2001-03-04  2:46     ` Randy Brukardt [this message]
2001-03-05 13:05       ` Marc A. Criley
2001-03-05 16:28         ` tmoran
2001-03-06  0:57           ` Marc A. Criley
2001-03-05 18:11         ` Randy Brukardt
2001-03-05 20:44         ` Florian Weimer
2001-03-07 16:02       ` Tucker Taft
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox