TEAM-ADA Archives

Team Ada: Ada Programming Language Advocacy

TEAM-ADA@LISTSERV.ACM.ORG

Options: Use Forum View

Use Monospaced Font
Show Text Part by Default
Condense Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Mime-Version:
1.0
Sender:
"Team Ada: Ada Advocacy Issues (83 & 95)" <[log in to unmask]>
Subject:
From:
Alexandre Crozat <[log in to unmask]>
Date:
Tue, 6 May 1997 14:53:11 -0300
Content-Type:
text/plain; charset="us-ascii"
Reply-To:
Alexandre Crozat <[log in to unmask]>
Parts/Attachments:
text/plain (17 lines)
Learning Ada by onesself in only two months is hard, but I'm getting at it...
Could someone help me with this one:

Is it possible to initialize a multi-dimensionnal array during its definition?
For single-dimensional arrays, the answer is yes:
   Init : array (0 .. 3) of Integer := (0 => 1, others => 0)
but what about a 2d array which I would like to fill with zeros?

Thanks for your help.

Alex
_______________________________________ ...
Alexandre Crozat
2 adresses -|> 2 reasons to reply!  :-)
[log in to unmask]
[log in to unmask]

ATOM RSS1 RSS2