comp.lang.ada
 help / color / mirror / Atom feed
From: Adam Beneschan <adambeneschan@gmail.com>
Subject: Re: trimming strings
Date: Sat, 2 Aug 2014 10:00:02 -0700 (PDT)
Date: 2014-08-02T10:00:02-07:00	[thread overview]
Message-ID: <4b2947cb-3c64-4411-9633-5f4f77ecc35a@googlegroups.com> (raw)
In-Reply-To: <1059032952428685269.120133nonlegitur-futureapps.invalid@reader80.eternal-september.org>

On Saturday, August 2, 2014 8:27:42 AM UTC-7, G. B. wrote:
> >> subtype string255fixedtype is string (1.255);
> >> inbuf : string255fixedtype;

> >> BEGIN
> >>   inbuf := Get_Line;
> >>   inbuf := trim(inbuf,both);  
> >> --    this does not work, error is both is not visible

> > Please post a complete example, there is many errors above, far to many
> > to even pass the compilation.
> 
> 
> one of these being likely that an array of 255 characters
> is to receive a string object that may not have that many
> due to trimming.

That's definitely an error (and assigning a string with a known length to Get_Line won't work either).  But those won't cause errors at compile time.  They will result in exceptions at run time.

                                 -- Adam

  reply	other threads:[~2014-08-02 17:00 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-08-02 13:10 trimming strings agent
2014-08-02 14:21 ` Pascal Obry
2014-08-02 15:27   ` G.B.
2014-08-02 17:00     ` Adam Beneschan [this message]
2014-08-02 17:22 ` mockturtle
2014-08-03 21:42   ` agent
2014-08-03 23:14     ` Georg Bauhaus
2014-08-04  0:17     ` Shark8
2014-08-04 10:06       ` mockturtle
2014-08-04 10:49         ` Pascal Obry
2014-08-04 11:51           ` Simon Clubley
2014-08-04 12:11             ` Pascal Obry
2014-08-04 16:50         ` Shark8
2014-08-04 23:28           ` Dennis Lee Bieber
2014-08-05 21:05             ` agent
replies disabled

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