From: Martin Krischik <krischik@users.sourceforge.net>
Subject: Re: Strings and errors... (gnat)
Date: Fri, 01 Dec 2006 09:39:11 +0100
Date: 2006-12-01T09:39:11+01:00 [thread overview]
Message-ID: <456fea30$1@news.post.ch> (raw)
In-Reply-To: <1164821430.144822.138100@h54g2000cwb.googlegroups.com>
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
next prev parent reply other threads:[~2006-12-01 8:39 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-11-29 17:30 Strings and errors... (gnat) tr00per
2006-11-29 17:44 ` Robert A Duff
2006-11-29 17:57 ` tr00per
2006-11-29 18:10 ` Ludovic Brenta
2006-11-30 11:36 ` Georg Bauhaus
2006-11-30 2:04 ` jimmaureenrogers
2006-12-01 8:39 ` Martin Krischik [this message]
2006-12-01 19:39 ` [solved] tr00per
-- strict thread matches above, loose matches on Subject: below --
2006-11-29 17:57 Strings and errors... (gnat) Benjamin Place
2006-11-30 6:16 ` Jeffrey R. Carter
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox