comp.lang.ada
 help / color / mirror / Atom feed
From: Jacob Sparre Andersen <jacob@jacob-sparre.dk>
Subject: Re: confusing string error
Date: Fri, 14 Feb 2014 14:03:24 +0100
Date: 2014-02-14T14:03:24+01:00	[thread overview]
Message-ID: <87ha81u9r7.fsf@adaheads.sparre-andersen.dk> (raw)
In-Reply-To: m23sf9prlefup1lir7j21jg9qeoaa7j0sl@4ax.com

agent@drrob1.com writes:

> Code fragment:
>
> type FSATyp is (delim, op, dgt, allelse);
> type TokenType is record
>   Ustr : unbounded_string;
>   State : FSATyp;
>   delimCH : Character;
>   delimstate : FSATyp;
> end record;
>
> ch: character;
>
> begin
>  ...
>
> Token.uStr := null_unbounded_string;
>
> ch now contains a plus sign, or an asterisk
> Token.uStr := Token.uStr & ch
>
> this last line fails with error Ada.Strings.INDEX_ERROR

You haven't provided enough information to compile and evaluate your
example.

Greetings,

Jacob
-- 
»You know the world has gone crazy when the best rapper is a
 white guy, the best golfer is a black guy, the swiss hold
 the America's cup, France is accusing the U.S. of
 arrogance, and Germany doesn't want to go to war«

  reply	other threads:[~2014-02-14 13:03 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-02-14 12:38 confusing string error agent
2014-02-14 13:03 ` Jacob Sparre Andersen [this message]
2014-02-15  0:46   ` agent
2014-02-15  1:50     ` adambeneschan
2014-02-15  8:41       ` Simon Wright
2014-02-15  1:57     ` adambeneschan
2014-02-15  9:33     ` Simon Wright
2014-02-15 12:53       ` agent
2014-02-15 16:58         ` adambeneschan
2014-02-15 18:29           ` Simon Wright
2014-02-17 12:57             ` agent
2014-02-15 13:15       ` agent
2014-02-15 17:56         ` Jeffrey 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