From: "Marc A. Criley" <mcqnet@earthlink.net>
Subject: Re: JGNAT and Null references
Date: Sat, 03 Mar 2001 21:17:53 GMT
Date: 2001-03-03T21:17:53+00:00 [thread overview]
Message-ID: <3AA151BF.C9193700@earthlink.net> (raw)
In-Reply-To: uy9uoynr6.fsf@gsfc.nasa.gov
Stephen Leake wrote:
>
> "Marc A. Criley" <mcqnet@earthlink.net> writes:
>
> > What
> > do I provide as a "null argument" in JGNAT? I was hoping to find some
> > sort of predefined "null_reference" constant, analogous to
> > System.Null_Address, but no such luck.
>
> You can't pass "null", in any form. Defining it as a constant won't
> work; the compiler is smarter than that!
>
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.
Marc
next prev parent reply other threads:[~2001-03-03 21:17 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 [this message]
2001-03-04 2:46 ` Randy Brukardt
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