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,c31849ae55c4fb65 X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!news3.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!wns14feed!worldnet.att.net!164.128.36.58!news.ip-plus.net!newsfeed.ip-plus.net!news.post.ch!not-for-mail From: Martin Krischik Newsgroups: comp.lang.ada Subject: Re: Strings and errors... (gnat) Date: Fri, 01 Dec 2006 09:39:11 +0100 Organization: Swisscom IP+ (post doesn't reflect views of Swisscom) Message-ID: <456fea30$1@news.post.ch> References: <1164821430.144822.138100@h54g2000cwb.googlegroups.com> NNTP-Posting-Host: 194.41.146.1 Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-2; format=flowed Content-Transfer-Encoding: 7bit X-Trace: atlas.ip-plus.net 1164962356 27182 194.41.146.1 (1 Dec 2006 08:39:16 GMT) X-Complaints-To: abuse@ip-plus.net NNTP-Posting-Date: Fri, 1 Dec 2006 08:39:16 +0000 (UTC) User-Agent: Thunderbird 1.5.0.8 (Windows/20061025) In-Reply-To: <1164821430.144822.138100@h54g2000cwb.googlegroups.com> X-Original-NNTP-Posting-Host: w01iwt.pnet.ch X-Original-Trace: 1 Dec 2006 09:39:12 +0200, w01iwt.pnet.ch Xref: g2news2.google.com comp.lang.ada:7770 Date: 2006-12-01T09:39:11+01:00 List-Id: tr00per schrieb: > Hello! > During compilation GNAT says: > pracownicy.adb:123:22: warning: too few elements for subtype of > "Standard.String" defined at line 107 > pracownicy.adb:123:22: warning: "Constraint_Error" will be raised at > run time > (and it is raised at run time) > > Those lines look like that: > ... > 104: buf:string(1..70); > ... > 107: tmp:string(1..30); > ... > 123: tmp:=buf(13..26); > ... > > 123:22 is after := > I don't get the point. Where is the problem? Please help! You allready got some help, so here just a suggested reading: http://en.wikibooks.org/wiki/Ada_Programming/Strings Martin