comp.lang.ada
 help / color / mirror / Atom feed
From: Adam Beneschan <adam@irvine.com>
Subject: Re: GNAT: no more exception raised on illformed text file?
Date: Mon, 6 Feb 2012 08:27:29 -0800 (PST)
Date: 2012-02-06T08:27:29-08:00	[thread overview]
Message-ID: <a30e14f5-d403-43c1-8eea-ae5fab3bf7c2@f14g2000yqe.googlegroups.com> (raw)
In-Reply-To: jgorsc$ho9$1@dont-email.me

On Feb 6, 7:33 am, "J-P. Rosen" <ro...@adalog.fr> wrote:
> Le 06/02/2012 08:08, Yannick Duchêne (Hibou57) a écrit :
>
> > Hi all,
>
> > Seems my FSF GNAT (*) does not raise an exception anymore when
> > encountering the last line of a malformed text file; that is, a text
> > file whose last line is not terminated with an end-of-line.
>
> > Is this on purpose?
>
> I don't know, but it is definitely acceptable, and many would view this
> as an improvement.

Right--in fact, we've had issues where a customer created a file with
Notepad and didn't hit RETURN at the end of the last line, and then
asked why a program wasn't reading the last line of the file.  This
sort of behavior can be surprising and unwelcome.

                           -- Adam



  parent reply	other threads:[~2012-02-06 16:27 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-02-06  7:08 GNAT: no more exception raised on illformed text file? Yannick Duchêne (Hibou57)
2012-02-06 15:33 ` J-P. Rosen
2012-02-06 16:03   ` Yannick Duchêne (Hibou57)
2012-02-06 16:27   ` Adam Beneschan [this message]
2012-02-06 19:04 ` Shark8
2012-02-06 19:45   ` Adam Beneschan
2012-02-07  6:47   ` J-P. Rosen
replies disabled

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