comp.lang.ada
 help / color / mirror / Atom feed
From: BrianG <me@null.email>
Subject: Re: Is Text_IO.Put_Line() thread-safe?
Date: Fri, 15 Jun 2012 22:00:40 -0400
Date: 2012-06-15T22:00:40-04:00	[thread overview]
Message-ID: <jrgpc9$a2u$1@dont-email.me> (raw)
In-Reply-To: <jrdntv$1fi9$1@adenine.netfront.net>

On 06/14/2012 06:17 PM, Jeffrey Carter wrote:
> On 06/14/2012 01:50 PM, awdorrin wrote:
>>
>> It is a mess, and if I could re-design the whole thing, I would.
>> Unfortunately I'm being told 'make it work' and that since the
>> application
>> has been used for 25+ years on the other platforms that there isn't
>> anything
>> wrong with the design.
>
> That hardly follows. People use badly designed things all the time. For
> decades the standard design for plumbing was 2 separate faucets (hot and
> cold) each with its own valve. That's a terrible design from a usability
> standpoint. Then came a single faucet with separate valves for hot and
> cold. That's better, but determining the valve positions for a desired
> combination of water temperature and pressure is difficult. A much
> better design is a single faucet with independent controls for
> temperature and pressure.
>
Sounds like that was part of the direction given, not a choice made (by 
the recipient of the direction).  You can't necessarily expect sense in 
what you're told to do.

On the Put_Line issue, why not simply wrap it in a protected object, and 
change Ada.Text_IO ref's to that object?  That won't help with the 
sequence-of-calls issues; you'd need individual protected calls for each 
sequence.

-- 
---
BrianG
000
@[Google's email domain]
.com



  parent reply	other threads:[~2012-06-16  2:00 UTC|newest]

Thread overview: 38+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-06-14 12:53 Is Text_IO.Put_Line() thread-safe? awdorrin
2012-06-14 13:49 ` Robert A Duff
2012-06-14 14:35   ` Adam Beneschan
2012-06-14 14:38   ` Dmitry A. Kazakov
2012-06-14 14:56     ` J-P. Rosen
2012-06-14 16:01       ` Dmitry A. Kazakov
2012-06-14 18:34       ` Robert A Duff
2012-06-21 19:01         ` Randy Brukardt
2012-06-14 18:29     ` Robert A Duff
2012-06-21 19:04       ` Randy Brukardt
2012-06-14 21:14     ` tmoran
2012-06-14 14:42   ` awdorrin
2012-06-14 18:24     ` Robert A Duff
2012-06-14 20:37       ` awdorrin
2012-06-14 21:37         ` Robert A Duff
2012-06-15  5:32           ` Georg Bauhaus
2012-06-15  7:22             ` Dmitry A. Kazakov
2012-06-15 21:32               ` Robert A Duff
2012-06-16  7:41                 ` Dmitry A. Kazakov
2012-06-15 21:27             ` Robert A Duff
2012-06-14 18:56 ` Jeffrey Carter
2012-06-14 20:50   ` awdorrin
2012-06-14 21:41     ` Robert A Duff
2012-06-15 12:39       ` awdorrin
2012-06-14 22:17     ` Jeffrey Carter
2012-06-14 22:40       ` Simon Wright
2012-06-14 23:35         ` Jeffrey Carter
2012-06-15  5:04           ` Simon Wright
2012-06-15  5:41             ` Jeffrey Carter
2012-06-21 19:20             ` Randy Brukardt
2012-06-16  2:00       ` BrianG [this message]
2012-06-16  6:04         ` J-P. Rosen
2012-06-16  6:49           ` Simon Wright
2012-06-16  7:58             ` Dmitry A. Kazakov
2012-06-16  8:03               ` Simon Wright
2012-06-16  8:14                 ` Dmitry A. Kazakov
2012-06-21 19:27               ` Randy Brukardt
2012-06-16  7:51           ` 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