comp.lang.ada
 help / color / mirror / Atom feed
From: Jeffrey Carter <jeffrey.carter@boeing.com>
Subject: Re: Anonymous array clarification.(Better idea, I think.)
Date: Mon, 20 Aug 2001 23:33:10 GMT
Date: 2001-08-20T23:33:10+00:00	[thread overview]
Message-ID: <3B819E36.4144005A@boeing.com> (raw)
In-Reply-To: Qsfg7.47279$K6.18175611@news2

McDoobie wrote:
> 
> So if I say...
> 
>         type foo_array is array(1..N) of character;
> 
> this would be an Object declaration.  Then I would instantiate it
> thusly....
> 
>         bar_array :  foo_array;
> 
> correct?
> 
> However if I say...
> 
>         some_chars : array(1..N) of character;
> 
> this would be just a simple array declaration, with none of the Object
> Oriented properties  carried along with it.

This has nothing to do with object orientedness. Bar_Array is a variable
of type Foo_Array, and Some_Chars is a variable of an unnamed
(anonymous) array type.

> 
> And with the Object "foo_array" declared above, I could say ...
> 
>         type Upper_Case is subtype foo_array;
> 
> and it should work?

This will not work. Perhaps you mean

subtype Upper_Case is Foo_Array;

or maybe

type Upper_Case is new Foo_Array;

I can't tell what you're trying to accomplish here.

> 
> Am I beginning to get the picture?

Unfortunately, it doesn't look that way.

-- 
Jeffrey Carter



  parent reply	other threads:[~2001-08-20 23:33 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-08-20 21:40 Anonymous array clarification.(Better idea, I think.) McDoobie
2001-08-20 21:58 ` David C. Hoos
2001-08-20 23:33 ` Jeffrey Carter [this message]
2001-08-21  0:49 ` Darren New
replies disabled

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