From: "Frank J. Lhota" <NOSPAM.FrankLho@rcn.com>
Subject: Re: Ada exception block does NOT work?
Date: Sat, 20 Aug 2005 18:47:58 -0400
Date: 2005-08-20T18:47:58-04:00 [thread overview]
Message-ID: <MK2dnRJ7odqCLpreRVn-rA@rcn.net> (raw)
In-Reply-To: wccslx4gumc.fsf@shell01.TheWorld.com
"Robert A Duff" <bobduff@shell01.TheWorld.com> wrote in message
news:wccslx4gumc.fsf@shell01.TheWorld.com...
> ...
> To me, "pointer" does not imply "a single machine address".
> To me, "pointer" means something that can point at things,
> and that includes fat pointers, pointers containing array
> dope, pointers represented as offsets instead of addresses,
> double indirections, &c.
Thats fine, but also understand that to many others, "pointer" does mean "a
single machine address". It certainly does not hurt to introduce a new term
to avoid potential misunderstandings.
> To me, "pointer" and "reference" are synonymous.
OK, but just be aware that in C++, "pointer" and "reference" are not
synonyms.
> And "address" or "machine address" can be used for the hardware-level
> concept.
>
> An index into an array can be used as a pointer to a particular
> array element.
So the number 3 can be thought of as a pointer into any array indexed by a
integer. An interesting concept, but this is certainly a non-standard use of
the term "pointer".
> Ada evolved from Pascal, and Pascal called them pointers.
> In Pascal, there was no requirement or implication that
> they must be a single machine address. There is no need
> for array dope in Pascal, but adding array dope doesn't seem
> like it requires renaming the whole concept.
For the record, I know of no Pascal compiler that implements a pointer as
anything other than a machine address.
>> As for Integer, you're quite right, but it's also quite natural to use
>> that name (or a shortened form of it) for such a subset. Such a usage is
>> quite common in computer languages; see FORTRAN (1955?) for an
>> example. What would be a better name for such a type?
>
> I'd use "Integer" for what Lisp calls "bignums" -- integers that can
> grow without bound (except of course you can run out of memory,
> but that's true of Strings and whatnot, too. I'd call the integer type
> that is based on the hardware (e.g. 32-bit integers) "Machine_Integer".
> And I wouldn't put it in a package called "Standard" and I wouldn't
> make it automatically visible everywhere.
>
> I think one ought to be allowed to say:
>
> type T is range 1..10**100;
>
> Portably.
Now that is an interesting concept. I am fond of divorcing the language from
platform constrains when practical. There are, however, some practical
concerns about this proposal. An Ada 'bignum' type would undoubtedly be a
controlled type, introducing more overhead than one would expect in a scalar
type.
--
"All things extant in this world,
Gods of Heaven, gods of Earth,
Let everything be as it should be;
Thus shall it be!"
- Magical chant from "Magical Shopping Arcade Abenobashi"
"Drizzle, Drazzle, Drozzle, Drome,
Time for the this one to come home!"
- Mr. Lizard from "Tutor Turtle"
next prev parent reply other threads:[~2005-08-20 22:47 UTC|newest]
Thread overview: 78+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-08-16 8:48 Ada exception block does NOT work? bubble
2005-08-16 9:00 ` Georg Bauhaus
2005-08-16 9:32 ` bubble
2005-08-16 9:42 ` gautier_niouzes
2005-08-16 15:25 ` Frank J. Lhota
2005-08-16 16:58 ` Svesse
2005-08-16 17:48 ` Björn Persson
2005-08-16 18:12 ` Svesse
2005-08-16 18:17 ` Frank J. Lhota
2005-08-17 10:53 ` Ludovic Brenta
2005-08-17 11:34 ` Anders Wirzenius
2005-08-17 18:08 ` Björn Persson
2005-08-17 19:05 ` Randy Brukardt
2005-08-18 15:58 ` Georg Bauhaus
2005-08-16 12:30 ` Georg Bauhaus
2005-08-16 17:39 ` Björn Persson
2005-08-16 19:43 ` Georg Bauhaus
2005-08-17 1:39 ` Jeffrey R. Carter
2005-08-17 7:22 ` Maciej Sobczak
2005-08-18 1:05 ` Jeffrey R. Carter
2005-08-18 8:44 ` Maciej Sobczak
2005-08-18 11:40 ` Jean-Pierre Rosen
2005-08-18 12:56 ` Maciej Sobczak
2005-08-18 14:42 ` Jean-Pierre Rosen
2005-08-18 18:03 ` Martin Krischik
2005-08-18 13:15 ` Alex R. Mosteo
2005-08-18 15:23 ` Dmitry A. Kazakov
2005-08-18 18:00 ` Martin Krischik
2005-08-18 16:13 ` Jeffrey Carter
2005-08-18 16:38 ` Hyman Rosen
2005-08-18 18:07 ` jimmaureenrogers
2005-08-18 18:44 ` Hyman Rosen
2005-08-18 20:52 ` Frank J. Lhota
2005-08-19 0:57 ` jimmaureenrogers
2005-08-19 7:52 ` Dmitry A. Kazakov
2005-08-19 14:41 ` Robert A Duff
2005-08-19 17:48 ` Martin Krischik
2005-08-19 14:58 ` Robert A Duff
2005-08-18 17:54 ` Martin Krischik
2005-08-18 20:56 ` Robert A Duff
2005-08-18 22:01 ` Hyman Rosen
2005-08-19 2:35 ` Jeffrey R. Carter
2005-08-20 15:28 ` Robert A Duff
2005-08-20 20:24 ` Jeffrey R. Carter
2005-08-20 21:34 ` Robert A Duff
2005-08-20 22:47 ` Frank J. Lhota [this message]
2005-08-20 23:34 ` Robert A Duff
2005-08-21 11:18 ` Simon Wright
2005-08-21 16:59 ` tmoran
2005-08-21 19:48 ` Simon Wright
2005-08-21 16:07 ` Frank J. Lhota
2005-08-21 16:23 ` Martin Krischik
2005-08-21 1:12 ` Björn Persson
2005-08-21 9:01 ` Dmitry A. Kazakov
2005-08-21 16:14 ` Martin Krischik
2005-08-21 4:02 ` Larry Kilgallen
2005-08-19 12:34 ` Dr. Adrian Wrigley
2005-08-19 17:29 ` Martin Krischik
2005-08-19 18:14 ` Frank J. Lhota
2005-08-21 16:02 ` Martin Krischik
2005-08-21 16:48 ` Frank J. Lhota
2005-08-22 15:51 ` Martin Krischik
2005-08-23 0:32 ` Larry Elmore
[not found] ` <h5dlg1tsie8n3ikirvbi508t9afobhctkj@4ax.com>
2005-08-23 18:09 ` Martin Krischik
2005-08-23 19:50 ` C history Björn Persson
2005-08-27 21:09 ` Ada exception block does NOT work? Dave Thompson
2005-08-24 1:07 ` Larry Elmore
2005-08-24 2:36 ` Jeffrey R. Carter
2005-08-25 0:14 ` Larry Elmore
2005-08-26 2:44 ` Jeffrey R. Carter
2005-08-24 16:44 ` Martin Krischik
2005-08-22 8:12 ` Hyman Rosen
2005-08-18 21:15 ` Robert A Duff
2005-08-19 12:00 ` Dmitry A. Kazakov
2005-08-17 20:24 ` Simon Wright
2005-08-18 19:36 ` Björn Persson
2005-08-18 21:07 ` Simon Wright
2005-08-22 10:47 ` bubble
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox