From: Preben Randhol <randhol+news@pvv.org>
Subject: Re: New Software Forum
Date: Wed, 18 Sep 2002 13:38:21 +0000 (UTC)
Date: 2002-09-18T13:38:21+00:00 [thread overview]
Message-ID: <slrnaoh0ed.p7.randhol+news@kiuk0156.chembio.ntnu.no> (raw)
In-Reply-To: uwupjbg9k.fsf@gsfc.nasa.gov
On 18 Sep 2002 09:04:39 -0400, Stephen Leake wrote:
> It has _never_ been a feature of Ada that the type of an object was
> obvious at the point of the use of the object. Consider:
>
> A := B + C;
>
> Is A an Integer, Cartestian Vector, or directed graph? You have no
> idea. However, any reasonable Ada IDE will provide a way to popup the
> definition of A, so you can see the type.
>
> In fact, the fact that there is no type information cluttering the
> statement is a feature. Compare it to the use of "Hungarian notation"
> in some Windows code.
Hmm yes you are right. The problem though is that if this is presented
to a beginner he will wonder why he cannot Put_Line his Float or some
other custome type in the same way without realising that you need a new
Text_IO package.
> My only problem with Ingo's suggestion is that it is a pain to provide
> the "appropriate string package", that defines all of the necessary
> variations of "&". That's why I wrote Auto_Text_IO
> (http://users.erols.com/leakstan/Stephe/Ada/auto_text_io.html); it
> writes a similar package for me.
I find myself always using 'Image as I don't bother with the hazzel of
remembering to with Float_IO, Integer_IO etc... so 'Image is faster. :-)
Preben
next prev parent reply other threads:[~2002-09-18 13:38 UTC|newest]
Thread overview: 26+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-09-14 15:33 New Software Forum Jim Rogers
2002-09-15 16:57 ` Daniel Dudley
2002-09-15 18:29 ` Marc Spitzer
2002-09-15 19:22 ` Jim Rogers
2002-09-15 19:33 ` Jim Rogers
2002-09-15 23:27 ` CodeMage
2002-09-16 16:43 ` Adrian Hoe
2002-09-16 18:48 ` sk
2002-09-16 23:43 ` Keith Thompson
2002-09-17 7:38 ` CodeMage
2002-09-16 1:17 ` Jeffrey Carter
2002-09-16 13:51 ` Jim Rogers
2002-09-17 4:27 ` Daniel Dudley
2002-09-17 13:00 ` Ingo Marks
2002-09-17 13:35 ` Preben Randhol
2002-09-17 16:39 ` Ingo Marks
2002-09-17 16:41 ` Ingo Marks
2002-09-17 17:33 ` Preben Randhol
2002-09-17 19:07 ` Ingo Marks
2002-09-17 21:03 ` Simon Wright
2002-09-18 13:04 ` Stephen Leake
2002-09-18 13:38 ` Preben Randhol [this message]
2002-09-28 16:57 ` Richard Riehle
2002-09-18 14:07 ` Kevin Cline
2002-09-18 17:46 ` Ingo Marks
2002-09-18 10:09 ` Ingo Marks
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox