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=-0.3 required=5.0 tests=BAYES_00, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!news1.google.com!news.glorb.com!feeder.erje.net!news-1.dfn.de!news.dfn.de!news.uni-weimar.de!not-for-mail From: stefan-lucks@see-the.signature Newsgroups: comp.lang.ada Subject: Re: Why is this not legal Date: Wed, 30 Sep 2009 07:10:27 +0200 Organization: Bauhaus-Universitaet Weimar Message-ID: References: <03k2c5lvkk6o9ihd9hbhpnobieoupjg9pc@4ax.com> <4ac3195c$1@news.post.ch> Reply-To: stefan-lucks@see-the.signature NNTP-Posting-Host: medsec1.medien.uni-weimar.de Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Trace: tigger.scc.uni-weimar.de 1254301786 4946 141.54.178.228 (30 Sep 2009 09:09:46 GMT) X-Complaints-To: news@tigger.scc.uni-weimar.de NNTP-Posting-Date: Wed, 30 Sep 2009 09:09:46 +0000 (UTC) X-X-Sender: lucks@medsec1.medien.uni-weimar.de In-Reply-To: <4ac3195c$1@news.post.ch> Xref: g2news2.google.com comp.lang.ada:8536 Date: 2009-09-30T07:10:27+02:00 List-Id: 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! ------