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: a07f3367d7,4496c60dc079a16a X-Google-Attributes: gida07f3367d7,public,usenet X-Google-NewGroupId: yes X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!news1.google.com!goblin2!goblin.stu.neva.ru!newsfeed-0.progon.net!progon.net!news-zh.switch.ch!switch.ch!news.ip-plus.net!newsfeed.ip-plus.net!news.post.ch!not-for-mail From: Martin Krischik Newsgroups: comp.lang.ada Subject: Re: Why is this not legal Date: Wed, 30 Sep 2009 10:39:55 +0200 Organization: Swisscom IP+ (post doesn't reflect views of Swisscom) Message-ID: <4ac3195c$1@news.post.ch> References: <03k2c5lvkk6o9ihd9hbhpnobieoupjg9pc@4ax.com> NNTP-Posting-Host: 194.41.146.1 Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Trace: atlas.ip-plus.net 1254300004 4956 194.41.146.1 (30 Sep 2009 08:40:04 GMT) X-Complaints-To: abuse@ip-plus.net NNTP-Posting-Date: Wed, 30 Sep 2009 08:40:04 +0000 (UTC) User-Agent: Thunderbird 2.0.0.23 (Windows/20090812) In-Reply-To: <03k2c5lvkk6o9ihd9hbhpnobieoupjg9pc@4ax.com> X-Original-NNTP-Posting-Host: w04asc.pnet.ch X-Original-Trace: 30 Sep 2009 10:39:56 +0200, w04asc.pnet.ch Xref: g2news2.google.com comp.lang.ada:8535 Date: 2009-09-30T10:39:55+02:00 List-Id: Rob Solomon schrieb: > I am trying to write some simple string manipulations but am getting > an error I don't understand. > > type WordEntryType is String(1..MaxLineLength); > > This is flagged as not legal. GNAT want it to read > IS NEW String > > But that means the type is not a standard string. > > What am I missing? The question has been answered but for more info see: http://en.wikibooks.org/wiki/Ada_Programming/Type_System ;-) Martin -- mailto://krischik@users.sourceforge.net Ada programming at: http://ada.krischik.com