From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,aeab6b16387b2612 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2001-07-16 15:45:24 PST Newsgroups: comp.lang.ada Path: archiver1.google.com!newsfeed.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!news-feeds.jump.net!uunet!dfw.uu.net!ash.uu.net!xyzzy!nntp From: Jeffrey Carter Subject: Re: How to do it in Ada ? X-Nntp-Posting-Host: e246420.msc.az.boeing.com Content-Type: text/plain; charset=us-ascii Message-ID: <3B53681C.77C3488D@boeing.com> Sender: nntp@news.boeing.com (Boeing NNTP News Access) Content-Transfer-Encoding: 7bit Organization: The Boeing Company X-Accept-Language: en References: <9itna2$i5b$1@news.tpi.pl> Mime-Version: 1.0 Date: Mon, 16 Jul 2001 22:18:04 GMT X-Mailer: Mozilla 4.5 [en]C-CCK-MCD Boeing Kit (WinNT; U) Xref: archiver1.google.com comp.lang.ada:10032 Date: 2001-07-16T22:18:04+00:00 List-Id: Mark Lundquist wrote: > > > X := new X_Array_Type'((1 .. N => 0)); > > What about those double parenthesis... do those look funny? Well, they > really are required. This is incorrect. The syntax for a qualified expression is qualified_expression ::= subtype_mark'(expression) | subtype_mark'aggregate so the double parens are not required. > X := new X_Array_Type (1 .. N) := (others => 0); This is also incorrect. -- Jeffrey Carter