comp.lang.ada
 help / color / mirror / Atom feed
From: Jeffrey Carter <spam@spam.com>
Subject: Re: Ada Pointer Problem
Date: Wed, 06 Oct 2004 18:19:32 GMT
Date: 2004-10-06T18:19:32+00:00	[thread overview]
Message-ID: <UGW8d.4342$UP1.3442@newsread1.news.pas.earthlink.net> (raw)
In-Reply-To: <35f054ea.0410060743.7b73aac3@posting.google.com>

skidmarks wrote:

> 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).

The word "pointer" is clearly there in ARM83 3.8 ("Access Types") and in 
the index. If it took you 4 hrs to find it, I don't think we can blame 
the ARM or Ada.

The terminology is not snobbishness but precision. The language 
definition should not unnecessarily constrain implementations. An access 
value may not necessarily be just a pointer; it may contain bounds 
information if it designates an unconstrained array type, for example, 
and there are such implementations.

There was also a design principle that shorter names were preferable: 
"task" instead of "thread" or "process", "access" instead of "pointer".

Finally, "is access X" reads better than "is pointer X".

-- 
Jeff Carter
"Death awaits you all, with nasty, big, pointy teeth!"
Monty Python & the Holy Grail
20




  reply	other threads:[~2004-10-06 18:19 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-10-01 19:34 Ada Pointer Problem aschwarz1309
2004-10-02  0:47 ` Jeffrey Carter
2004-10-02 23:37   ` Randy Brukardt
2004-10-06 15:43     ` skidmarks
2004-10-06 18:19       ` Jeffrey Carter [this message]
2004-10-16  3:53         ` Benjamin Ketcham
2004-10-16 13:25           ` John B. Matthews
2004-10-18 18:09           ` Georg Bauhaus
2004-10-06 19:29       ` Georg Bauhaus
2004-10-07 18:45         ` skidmarks
2004-10-08  0:35           ` Jeffrey Carter
2004-10-08 12:02           ` Jean-Pierre Rosen
2004-10-08 16:58             ` Ludovic Brenta
2004-10-08 23:26             ` Björn Persson
2004-10-10 18:01             ` skidmarks
2004-10-08 14:03           ` Georg Bauhaus
2004-10-08 14:23           ` Dale Stanbrough
  -- strict thread matches above, loose matches on Subject: below --
2004-10-01 15:26 skidmarks
2004-10-01 15:50 ` David C. Hoos
2004-10-01 18:15   ` Jeffrey Carter
2004-10-01 17:24 ` Ludovic Brenta
replies disabled

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