comp.lang.ada
 help / color / mirror / Atom feed
From: Jeffrey Carter <jeffrey.carter@boeing.com>
Subject: Re: Nonsense (was Re: How to do it in Ada ?)
Date: Mon, 16 Jul 2001 22:20:40 GMT
Date: 2001-07-16T22:20:40+00:00	[thread overview]
Message-ID: <3B5368B8.D16F932A@boeing.com> (raw)
In-Reply-To: yAG47.358161$p33.7256533@news1.sttls1.wa.home.com

Mark Lundquist wrote:
> 
> I <up.yerz@nospam.com> wrote nonsense in message
> news:P0F47.357734$p33.7248200@news1.sttls1.wa.home.com...
> >
> >[snip]
> >
> > Alternatively, the declaration could be written this way:
> >
> >     X := new X_Array_Type (1 .. N) := (others => 0);
> >
> 
> What a bunch of crap!  I can't belive I wrote that.

I'm glad you realize this is incorrect. However, ...

>     X : new X_Array_Type (1 .. N);
> 
>     begin
>             X := (others => 0);

this is also incorrect. You could write

X := new X_Array_Type (1 .. N);
X.all := (X'range => 0);

-- 
Jeffrey Carter



  reply	other threads:[~2001-07-16 22:20 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-07-16  3:33 How to do it in Ada ? Tomasz Wegrzanowski
2001-07-16  5:31 ` Jeffrey Carter
2001-07-16  6:41 ` Al Christians
2001-07-16  6:51 ` tmoran
2001-07-16 16:56   ` Mark Lundquist
2001-07-16 18:42     ` Nonsense (was Re: How to do it in Ada ?) Mark Lundquist
2001-07-16 22:20       ` Jeffrey Carter [this message]
2001-07-17  0:13       ` Ken Garlington
2001-07-17  3:53       ` Robert Dewar
2001-07-16 22:18     ` How to do it in Ada ? Jeffrey Carter
2001-07-17  4:06       ` tmoran
2001-07-20  5:39     ` David Thompson
2001-07-16 17:37   ` Ken Garlington
replies disabled

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