comp.lang.ada
 help / color / mirror / Atom feed
From: Blady <p.p11@orange.fr>
Subject: Re: Ada.Text_IO.File_Type object with user defined Get and Put subprograms.
Date: Sat, 1 Aug 2020 09:42:18 +0200	[thread overview]
Message-ID: <rg36cp$1e9t$1@gioia.aioe.org> (raw)
In-Reply-To: rg2uvj$3qt$1@dont-email.me

Le 01/08/2020 à 07:35, J-P. Rosen a écrit :
> Le 31/07/2020 à 19:06, Blady a écrit :
>> The simplest solution (I found) is to add a virtual dummy Text_IO
>> package (name My_TIO) with Put_Line defined inside processing the values
>> and sending the lines to the other process if needed.
> Looks reasonable
> 
>> And I replaced everywhere with "Ada.Text_IO;" by "with My_TIO;".
>> But Text_IO is also used for file management inside the legacy code
>> which made me going to wrap all the Text_IO stuff :-(
> Did you think that you can simply use "renames" to reexport the
> operations of Text_IO from My_TIO ?

Yes I'll try in that way.

> You could also leave Text_IO and My_TIO. Use Adasubst to automatically
> change all the special operations from Text_IO to My_TIO.
> https://www.adalog.fr/en/components.html#adasubst

There is always use clause for Text_IO in the code, the point is to 
catch those Put_Line calls with no file parameter.

  reply	other threads:[~2020-08-01  7:42 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-07-30 20:21 Ada.Text_IO.File_Type object with user defined Get and Put subprograms Blady
2020-07-30 21:51 ` J-P. Rosen
2020-07-31 17:06   ` Blady
2020-08-01  5:35     ` J-P. Rosen
2020-08-01  7:42       ` Blady [this message]
2020-08-01 13:45         ` J-P. Rosen
2020-07-31 18:19 ` Shark8
2020-08-01  7:46   ` Blady
2020-08-01 17:23     ` Shark8
2020-09-04 10:14 ` liyan white
2020-09-24  4:10 ` nimaopatel121
replies disabled

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