comp.lang.ada
 help / color / mirror / Atom feed
From: "Nick Roberts" <nickroberts@adaos.worldonline.co.uk>
Subject: Re: Probl�me avec des get(fichier, integer)
Date: Thu, 3 Jan 2002 17:56:37 -0000
Date: 2002-01-03T17:56:37+00:00	[thread overview]
Message-ID: <a12c04$np35k$1@ID-25716.news.dfncis.de> (raw)
In-Reply-To: mailman.1010072881.27934.comp.lang.ada@ada.eu.org

"M. A. Alves" <maa@liacc.up.pt> wrote in message
news:mailman.1010072881.27934.comp.lang.ada@ada.eu.org...

> ...
> Seems like a GNAT bug to me.

It's not a GNAT bug! Poor GNAT seems to get wrongly accused too often.

In a dark corner of the reference manual - RM95 J.2 (3) - you will see that
the '#' hashes in a based numeric literal are permitted to be replaced by
':' colons. (This is an obsolescent feature, and so may be removed by a
future revision.)

Thus, standard Ada.Integer_Text_IO.Get interprets a ':' character as part of
the numeric literal (and if it gets to the end of the line before finding
the next one, raises Ada.IO_Exceptions.Data_Error).

So GNAT behaves absolutely pukka here.

--
Nick Roberts






  reply	other threads:[~2002-01-03 17:56 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <a0vili$oga$1@wanadoo.fr>
2002-01-03  0:25 ` Probl�me avec des get(fichier, integer) Nick Roberts
2002-01-03  1:50   ` Matthew Graybosch
2002-01-07  9:43   ` Jean-Pierre Rosen
2002-01-03 15:47 ` Problème " M. A. Alves
2002-01-03 17:56   ` Nick Roberts [this message]
2002-01-04 11:46     ` M. A. Alves
2002-01-10 15:15     ` Probl�me " Robert A Duff
2002-01-10 23:46       ` Nick Roberts
2002-01-10 13:00 ` Problème " Charles Fr. Rey
2002-01-11  1:55   ` 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