From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,967ae26df92535de X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2002-09-18 06:38:21 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!canoe.uoregon.edu!logbridge.uoregon.edu!uio.no!ntnu.no!not-for-mail From: Preben Randhol Newsgroups: comp.lang.ada Subject: Re: New Software Forum Date: Wed, 18 Sep 2002 13:38:21 +0000 (UTC) Organization: Norwegian university of science and technology Message-ID: References: <3D8356A7.9010208@worldnet.att.net> NNTP-Posting-Host: kiuk0156.chembio.ntnu.no X-Trace: tyfon.itea.ntnu.no 1032356301 21457 129.241.83.82 (18 Sep 2002 13:38:21 GMT) X-Complaints-To: usenet@itea.ntnu.no NNTP-Posting-Date: Wed, 18 Sep 2002 13:38:21 +0000 (UTC) User-Agent: slrn/0.9.7.4 (Linux) Xref: archiver1.google.com comp.lang.ada:29107 Date: 2002-09-18T13:38:21+00:00 List-Id: 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