comp.lang.ada
 help / color / mirror / Atom feed
From: "ldries46" <bertus.dries@planet.nl>
Subject: Re: Length of unbounded_string.
Date: Mon, 24 Oct 2011 19:04:57 +0200
Date: 2011-10-24T19:04:57+02:00	[thread overview]
Message-ID: <4ea59b8c$0$8049$703f8584@textnews.kpn.nl> (raw)
In-Reply-To: <j7mo0r$cfc$1@dont-email.me>

No, while debugging I found tthat the first comma at the end of a line 
disappeared and concatenated to the following line.

The if statement may be not to logical but the different cases in which 
concatenation has to be done are al defined.
May be later on a better condition can be defined.

"Alex Mentis"  schreef in bericht news:j7mo0r$cfc$1@dont-email.me...

ldries46 wrote:

> The complete code of which I would conclude that the comma should be
> present is:
. . .
>            ch := Element(str, len);
>            if ch = ',' or (ch /= ';' and ch /= '{' and ch /= '}') then
                . . .
>            end if;

The check to see if ch = ',' seems superfluous here. Since ',' is not a
semi-colon or a brace, the (ch /= ';' and ch /= '{' and ch /= '}')
condition will suffice to execute this branch when ch = ',' (or any
other non semi-colon, left-brace, or right-brace character for that
matter).

Could your problem possibly be that you are appending in more cases
than you expect?

Alex 




  reply	other threads:[~2011-10-24 17:05 UTC|newest]

Thread overview: 33+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-10-16  8:48 Length of unbounded_string ldries46
2011-10-16  9:59 ` Niklas Holsti
2011-10-16 12:06   ` ldries46
2011-10-16 12:52   ` ldries46
2011-10-16 13:00     ` Niklas Holsti
2011-10-17  7:39       ` ldries46
2011-10-17 19:49         ` Niklas Holsti
2011-10-18 11:47           ` ldries46
2011-10-18 17:54             ` Niklas Holsti
2011-10-19  2:38               ` ldries46
2011-10-19  6:07                 ` Niklas Holsti
2011-10-24 15:10                   ` ldries46
2011-10-19  6:37                 ` Simon Wright
2011-10-19 14:48                 ` Alex Mentis
2011-10-24 17:04                   ` ldries46 [this message]
2011-10-16 10:14 ` Vinzent Hoefler
  -- strict thread matches above, loose matches on Subject: below --
2011-10-25  9:37 ldries46
2011-10-25 17:57 ` Jeffrey Carter
2011-10-28  2:54   ` ldries46
2011-10-28  4:55     ` Jeffrey Carter
2011-10-25 20:23 ` Vadim Godunko
2011-10-25 21:28   ` Simon Wright
2011-10-26  4:41     ` Simon Wright
2011-10-26 22:47     ` Randy Brukardt
2011-10-27  8:05       ` AdaMagica
2011-10-27  8:56       ` Simon Wright
2011-10-27 11:05         ` Brian Drummond
2011-10-28  3:12           ` ldries46
     [not found]           ` <4eafc489$0$3081$703f8584@textnews.kpn.nl>
2011-11-01 18:22             ` Jeffrey Carter
2011-10-27 11:28         ` Georg Bauhaus
2011-10-27 12:17           ` Dmitry A. Kazakov
2011-10-27 13:31             ` Georg Bauhaus
2011-10-27 14:34               ` Dmitry A. Kazakov
replies disabled

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