comp.lang.ada
 help / color / mirror / Atom feed
From: Jeffrey Carter <spam@spam.com>
Subject: Re: Disambiguation
Date: Sat, 25 Jun 2005 05:56:53 GMT
Date: 2005-06-25T05:56:53+00:00	[thread overview]
Message-ID: <Fm6ve.9006$hK3.5333@newsread3.news.pas.earthlink.net> (raw)
In-Reply-To: <42BBF5F1.3050707@mailinator.com>

Alex R. Mosteo wrote:
> Hello, see this test program:

Everything in Ada has a complete name starting with Standard.

> 
> procedure Test_Ambig is

this is Standard.Test_Ambig.

> 
>    type X is (Data, Meta);

These are Standard.Test_Ambig.X, Standard.Test_Ambig.Data, & 
Standard.Test_Ambig.Meta.

> 
>    procedure Foo (Data : in Natural) is

These are Standard.Test_Ambig.Foo and Standard.Test_Ambig.Foo.Data.

>       Z : constant X := Meta;

This is Standard.Test_Ambig.Foo.Z.

Generally, you can leave off the "Standard." :)

-- 
Jeff Carter
"No one is to stone anyone until I blow this whistle,
do you understand? Even--and I want to make this
absolutely clear--even if they do say, 'Jehovah.'"
Monty Python's Life of Brian
74



      parent reply	other threads:[~2005-06-25  5:56 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-06-24 12:00 Disambiguation Alex R. Mosteo
2005-06-24 12:12 ` Disambiguation Duncan Sands
2005-06-24 12:48   ` Disambiguation Alex R. Mosteo
2005-06-24 18:19   ` Disambiguation Martin Dowie
2005-06-25  5:56 ` Jeffrey Carter [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