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-Thread: 103376,c58a5b8372dc24a0 X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII Path: g2news1.google.com!news1.google.com!npeer03.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!nntp.club.cc.cmu.edu!feeder.erje.net!feeder.eternal-september.org!eternal-september.org!.POSTED!not-for-mail From: "J-P. Rosen" Newsgroups: comp.lang.ada Subject: Re: confusion with string initialization Date: Sat, 17 Apr 2010 21:01:36 +0200 Organization: Adalog Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit Injection-Date: Sat, 17 Apr 2010 19:01:39 +0000 (UTC) Injection-Info: feeder.eternal-september.org; posting-host="BmMjSWM6MlrJGoGdUj30Hw"; logging-data="22840"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18WgW63epomMRsggiTLqh/w" User-Agent: Thunderbird 2.0.0.24 (Windows/20100228) In-Reply-To: Cancel-Lock: sha1:BO4OlPvkvzjBWTpcURejY3E9+FQ= Xref: g2news1.google.com comp.lang.ada:10046 Date: 2010-04-17T21:01:36+02:00 List-Id: brett a �crit : > I'm trying to learn Ada 2005 with GNAT ( Linux) and are having problems with string initialization using the > > bs := 20 * " "; > > construct, which always gives an error > > "universal integer expected" > presumably, you forgot the with and/or use clauses for the string package. Therefore the only "*" operator that's visible is the one between universal integers (i.e. bare numbers). Remember: you can use something in Ada only if it is made visible by the appropriate clauses. -- --------------------------------------------------------- J-P. Rosen (rosen@adalog.fr) Visit Adalog's web site at http://www.adalog.fr