comp.lang.ada
 help / color / mirror / Atom feed
From: stefan-lucks@see-the.signature
Subject: Re: Why is this not legal
Date: Wed, 30 Sep 2009 07:10:27 +0200
Date: 2009-09-30T07:10:27+02:00	[thread overview]
Message-ID: <Pine.LNX.4.64.0909300706580.9419@medsec1.medien.uni-weimar.de> (raw)
In-Reply-To: <4ac3195c$1@news.post.ch>

While the question has been answered, and the wikibook is a good 
reference, this appears to be a frequently asked question. Obviously, 
GNAT's error message in this case ("missing new") is leading beginners
into the wrong direction. 

Stefan

On Wed, 30 Sep 2009, Martin Krischik wrote:

> 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
> 

-- 
------ Stefan Lucks   --  Bauhaus-University Weimar  --   Germany  ------
               Stefan dot Lucks at uni minus weimar dot de
------  I  love  the  taste  of  Cryptanalysis  in  the  morning!  ------




      reply	other threads:[~2009-09-30  5:10 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-09-29  0:11 Why is this not legal Rob Solomon
2009-09-29  0:23 ` Adam Beneschan
2009-09-29  2:06   ` Rob Solomon
2009-10-01 20:54   ` Keith Thompson
2009-09-30  8:39 ` Martin Krischik
2009-09-30  5:10   ` stefan-lucks [this message]
replies disabled

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