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-Thread: 103376,efe381d5ed2da234 X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news2.google.com!fu-berlin.de!cs.tu-berlin.de!uni-duisburg.de!not-for-mail From: Georg Bauhaus Newsgroups: comp.lang.ada Subject: Re: Ada Pointer Problem Date: Wed, 6 Oct 2004 19:29:40 +0000 (UTC) Organization: GMUGHDU Message-ID: References: <7KadnU33z-bmpsLcRVn-og@megapath.net> <35f054ea.0410060743.7b73aac3@posting.google.com> NNTP-Posting-Host: l1-hrz.uni-duisburg.de X-Trace: a1-hrz.uni-duisburg.de 1097090980 12914 134.91.1.34 (6 Oct 2004 19:29:40 GMT) X-Complaints-To: usenet@news.uni-duisburg.de NNTP-Posting-Date: Wed, 6 Oct 2004 19:29:40 +0000 (UTC) User-Agent: tin/1.5.8-20010221 ("Blue Water") (UNIX) (HP-UX/B.11.00 (9000/800)) Xref: g2news1.google.com comp.lang.ada:4831 Date: 2004-10-06T19:29:40+00:00 List-Id: skidmarks wrote: : : And yes, I am frustrated. : : A little anecdote. I've followed Ada since it's pre-inception in the : mid-70's, and still have the original SigPlan Green Book. I liked the : idea of Ada and the language of Ada, until 1988. In 1988 I had a : little design problem that I wanted to solve with a pointer. I looked, : and looked, and looked all over the LRM and Ada as a Second Language : (by Cohen) for a pointer. After four hours I found 'Access Type'. It : took four hours to solve a four minute problem. I think because of Ada : snobishnes (we can do better than you can and can do it without using : your keywords or terminology). So maybe there is an opportunity to improve the exposition of Ada language constructs for programmers expecting wide spread terminology. Even if there is good reason to make the distinction between the _various_ pointer like things and addresses in Ada explicit. OTOH, almost every introductory chapter, starting from the beginning, mentions access values. Ada as a Second Language has a whole chapter describing access types. They are also mentioned in the introductory chapter, IIRC. Does Ada assume programmers that have had an opportunity to become familiar with their tool? In order to find "pointer" in the ARM (Ada 95, admittedly) I pressed the search key twice for "pointer" and found: 18. (77) Access values are called "pointers" or "references" in some other languages. I'd have a similar problem problem with template<> class Something when accompanied by mystic talk about template specializations and pointers and saving instances. Just trying to find "generics" the standard or TC++PL won't be helpful I think. OTOH, there are C++ rules that help understanding this line. Stroustrup explains in Ch 13; it does take time though to read this. I wouldn't know how to quickly solve a "template problem" without studying this chapter or something equivalent. (Well, a solution might be found by accident.) Can you blame a language for having an impressive set of rules, and its own terms? Likewise, how would a Scheme programmer, never having seen CommonLISP, know that you cannot have a function valued thing at place one in a list? Instead you have to use FUNCALL. Newsgroups are a Good Thing then, because this is where you can ask if you are stuck between hundred of pages of formal writing :-) : I think that I'm better than fair in Ada. I also think that I'm : wasting time on this language. It takes too long to do simple things, : and is a research effort to do the possible but not pedestrian. Could you give some examples? -- Georg