comp.lang.ada
 help / color / mirror / Atom feed
From: Laurent <daemon2@internet.lu>
Subject: Re: How to get this space away?
Date: Fri, 5 Jun 2015 06:02:35 -0700 (PDT)
Date: 2015-06-05T06:02:35-07:00	[thread overview]
Message-ID: <c826bbd8-a6e6-44cd-9ee7-f5e349822f84@googlegroups.com> (raw)
In-Reply-To: <mknp7j$4s1$1@dont-email.me>

On Wednesday, June 3, 2015 at 10:50:07 PM UTC+2, J-P. Rosen wrote:

> This dates back to Ada83. The initial idea was that a positive number
> and its opposite (negative) number should have the same number of
> characters. Forcing a '+' to all positive number would not have been
> pretty, so the design team chose to put a space for positive numbers
> (negative numbers just have an initial '-').

I won't argue about the ARG's wisdom or their choices but for me it still
doesn't make sense. If I want to display a number (positive or negative, int,
 float, or whatever) in a string I always want it to be separated by a space. 
But then using the I/O package I have the choice to do so. The 'img looks
in this case only 1/2 finished.

Remembers me the solutions that my boss and his followers develop:
Don't solve the original problem, "just" add more crap around and have the personal
get along with it.

Oh your car has no breaks, well you "just"can use your feet to stop.

I was actually using 'Img because it was rather convenient to do the output in one
line.

I have now added a procedure which written the results directly to the file.
Prefer this way than reserving memory for something I don't need. Not that I
need to pay attention to this but it simply doesn't feel right.

Thanks

Laurent 


  parent reply	other threads:[~2015-06-05 13:02 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-06-02 20:32 How to get this space away? Laurent
2015-06-02 20:53 ` Simon Wright
2015-06-03 18:59   ` Laurent
2015-06-03 19:30     ` Simon Wright
2015-06-02 22:28 ` Jeffrey R. Carter
2015-06-03 19:07   ` Laurent
2015-06-03 20:50     ` J-P. Rosen
2015-06-03 23:00       ` Randy Brukardt
2015-06-05  9:26         ` Stephen Davies
2015-06-08 12:33         ` Brad Moore
2015-06-08 19:47           ` Randy Brukardt
2015-06-08 20:25             ` Jeffrey R. Carter
2015-06-09 14:38               ` Brad Moore
2015-06-04  9:37       ` Georg Bauhaus
2015-06-04 12:32         ` Dmitry A. Kazakov
2015-06-05 13:02       ` Laurent [this message]
2015-06-06  0:02         ` Dennis Lee Bieber
2015-06-03  7:28 ` Dmitry A. Kazakov
2015-06-03 19:19   ` Laurent
2015-06-08 22:43 ` wowwomenonwheels205
replies disabled

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