From: Robert A Duff <bobduff@world.std.com>
Subject: Re: is everything child of Standard Package in Ada?
Date: 1999/03/05
Date: 1999-03-05T00:00:00+00:00 [thread overview]
Message-ID: <wccyalc6j2o.fsf@world.std.com> (raw)
In-Reply-To: 7bh1po$1ibb@news3.newsguy.com
Samuel Mize <smize@imagin.net> writes:
> However, it is a special case. You don't need to say, for instance,
> "Standard.Ada.Text_Io" and indeed you can't (at least on the compiler
> I'm using at the moment).
This is true only in with_clauses; you must say "with Ada.Text_IO;" and
not "with Standard.Ada.Text_IO;". In normal code, you can say things
like:
Standard.Ada.Text_IO.Put_Line("Hello");
If you declare a library package called Standard, like this:
package Standard is
end Standard;
you will get a child of *the* Standard also called Standard;
that is, Standard.Standard. That would be a pretty silly
thing to do, but it's legal.
- Bob
--
Change robert to bob to get my real email address. Sorry.
prev parent reply other threads:[~1999-03-05 0:00 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
1999-03-02 0:00 is everything child of Standard Package in Ada? nabbasi
1999-03-02 0:00 ` robert_dewar
1999-03-03 0:00 ` Tucker Taft
1999-03-02 0:00 ` Samuel Mize
1999-03-03 0:00 ` Samuel Mize
1999-03-05 0:00 ` Robert A Duff [this message]
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox