comp.lang.ada
 help / color / mirror / Atom feed
From: "Ken Garlington" <Ken.Garlington@computer.org>
Subject: Re: Static typing (Was Re: Better support for garbage collection)
Date: Thu, 29 Mar 2001 14:28:32 GMT
Date: 2001-03-29T14:28:32+00:00	[thread overview]
Message-ID: <kEHw6.433$7d1.81391732@newssvr16.news.prodigy.com> (raw)
In-Reply-To: 99ujqs$aai1@news.cis.okstate.edu


"David Starner" <dvdeug@x8b4e53cd.dhcp.okstate.edu> wrote in message
news:99ujqs$aai1@news.cis.okstate.edu...
: On Thu, 29 Mar 2001 05:02:56 GMT, Ken Garlington
<Ken.Garlington@computer.org> wrote:
: >: Then in Ada, a call "Mumble(1);" will resolve to the first Mumble.  But
: >: that's error prone.  A reasonable person might accidentally think it
: >: refers to the other one (because, after all, the number one is a
: >: perfectly reasonable floating-point number).
: >
: >As noted earlier, not according to the dictionary definition of
: >"floating-point".
:
: I think it's a little flaky to depend on dictionary definitions. : The
: only dictionary I have that defines this (the Free On-line Dictionary
: of Computing) defines it as "A number representation consisting of a
: mantissa, M, an exponent, E, and an (assumed) radix (or base)" which
: helps no one in this argument.

I usually use the Merriam-Webster online dictionary, which also defines
"floating-point." My hardcopy version of their Collegiate dictionary also
has a definition of "floating-point." I suspect many other dictionaries also
define the term.

IMHO it helps me *considerably* that there is a common meaning to the term,
and that that they all talk about a "representation" without necessarily
implying an *underlying hardware* representation. In fact, M-W is explicit
in this: "...in which a number is represented (as in a computer display)".
Therefore, there is support in general usage of form to determine if a
number is a floating-point number. If it's "flaky" to use traditions when
determining a "best" solution, then I guess I'm guilty as charged --
although, of course, the law would then be "flaky" as well, so I guess I
can't be convicted! ;)

As I noted in another post, if someone complained about Ada not requiring an
exponent as well as (or instead of) a decimal point, so that the literal
form would follow the "common" convention, I could understand that argument
(although it would be annoying to have to do this.)

: >:  I claim that this call
: >: should be ambiguous, and therefore illegal.  Likewise, "Mumble(1.0)"
: >: could be mistaken to refer to the wrong one (because, after all, 1.0 is
: >: an integer number).
: >
: >Not according to the dictionary definition of "integer".
:
: 1.0 is either zero or an integer (in this case 0) plus or minus one.

M-W says that it is one of the natural numbers, the negatives of these
numbers, or zero. A natural number is "the number 1 [not 1.0!]  or any
number (as 3, 12, 432) obtained by adding 1 to it one or more times: a
positive integer." (Zero is defined as "the arithmetic symbol 0".)

: So by the Free On-line Dictionary of Computing, it is an integer.

Actually, here's what FOLDOC says:

"integer: <mathematics> (Or 'whole number') One of the finite numbers in the
infinite set  ..., -3, -2, -1, 0, 1, 2, 3, ... An inductive definition of an
integer is a number which is either zero or an integer plus or minus one. An
integer is a number with no fractional part. If written in as a fixed-point
number, the part after the decimal (or other base) point will be zero.  A
natural number is a non-negative integer. "

Note that part about "if written in as [sic] a fixed-point number." What
this says to me is that an integer *is compatible with* a fixed-point
number, under certain circumstances. However, it clearly implies that we are
talking about two different "forms" of a number.

Just because in "the real world" we take short cuts doesn't change the fact
that these words have certain meanings. Generally, society encourages
non-rigorous usage of words, and since humans are interpreting them, it
works out OK (except, of course, that we often misunderstand each other as a
result). However, I believe that a language like Ada should pick a different
level of rigor in interpreting "words" (symbols), and that in particular I
wouldn't want it to be less rigorous than it is today.

: WordNet, and Webster's (1913) aren't as mathematically rigerous (an
: integer is a number that isn't a fraction or a mixed number?). Again,
: I don't see how the dictionary says that 1.0 is not an integer, and
: even if your's does, I don't see why that's definitive.

Well, I suppose you could argue that there are no definitive meanings to any
word, but I think there's a more generally-accepted notion in debate that
published works can be used to support an argument. Of course, you could
argue that it's "flaky" to use this concept in an argument. In fact, I think
the University of Texas did argue something similar, a few years ago.
(Actually, their argument was more expansive than that, IIRC...)





  parent reply	other threads:[~2001-03-29 14:28 UTC|newest]

Thread overview: 115+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-03-13 18:37 Better support for garbage collection Nick Roberts
2001-03-14  8:16 ` Florian Weimer
2001-03-14 18:52   ` Robert A Duff
2001-03-14 19:40     ` Florian Weimer
2001-03-15 13:18       ` Nick Roberts
2001-03-14 19:29 ` Robert A Duff
2001-03-14 20:59   ` Brian Rogoff
2001-03-16 16:42     ` Robert A Duff
2001-03-17  6:13       ` Lao Xiao Hai
2001-03-24  4:08       ` Brian Rogoff
2001-03-15  4:35   ` Nick Roberts
2001-03-15 21:37     ` Randy Brukardt
2001-03-15 22:36     ` Stephen Leake
2001-03-16 16:26     ` Robert A Duff
2001-03-16 16:59       ` Brian Rogoff
2001-03-16 17:31         ` Robert A Duff
2001-03-16 18:29           ` Brian Rogoff
2001-03-17  2:30           ` Nick Roberts
2001-03-17 21:59             ` Robert A Duff
2001-03-17 22:57             ` Static typing (Was Re: Better support for garbage collection) Brian Rogoff
2001-03-17 23:45               ` Robert A Duff
2001-03-18  0:58                 ` Brian Rogoff
2001-03-19 15:24                   ` Robert A Duff
2001-03-20  4:21                     ` Brian Rogoff
2001-03-21  1:32                       ` Ken Garlington
2001-03-21 13:28                         ` Robert A Duff
2001-03-22  2:08                           ` Ken Garlington
2001-03-22 16:40                             ` Robert A Duff
2001-03-25 16:21                               ` Ken Garlington
2001-03-25 16:56                                 ` Ken Garlington
2001-03-25 22:31                                 ` Robert A Duff
2001-03-27  0:24                                   ` Ken Garlington
2001-03-28 23:15                                     ` Robert A Duff
2001-03-29  5:02                                       ` Ken Garlington
2001-03-29  6:13                                         ` David Starner
2001-03-29 10:10                                           ` AG
2001-03-29 14:28                                           ` Ken Garlington [this message]
2001-03-29 23:46                                         ` Robert A Duff
2001-03-30  3:41                                           ` Ken Garlington
2001-03-30 21:21                                             ` Robert A Duff
2001-03-31 19:30                                               ` Ken Garlington
2001-04-02 15:27                                                 ` Robert A Duff
2001-04-02 23:29                                                   ` Ken Garlington
2001-03-30 21:29                                             ` Robert A Duff
2001-03-30  9:16                                           ` Dmitry Kazakov
2001-03-30  9:51                                             ` Florian Weimer
2001-04-02  8:54                                               ` Dmitry Kazakov
2001-03-30 16:13                                             ` Ken Garlington
2001-04-02 11:00                                               ` Dmitry Kazakov
2001-03-30 20:44                                             ` Robert C. Leif, Ph.D.
2001-04-02 11:29                                               ` Dmitry Kazakov
2001-04-02 13:15                                                 ` Robert A Duff
2001-04-03  8:57                                                   ` Dmitry Kazakov
2001-03-27  2:39                             ` Andrew Berg
2001-03-27  3:33                               ` Ken Garlington
2001-03-27 14:23                                 ` Robert A Duff
2001-03-27 23:36                                   ` Ken Garlington
2001-03-29 23:50                       ` Robert A Duff
2001-03-19 18:24       ` Better support for garbage collection Tucker Taft
     [not found]   ` <87bsr46kxv.fsf@deneb.enyo.de>
2001-03-15 14:18     ` Robert A Duff
2001-03-15 16:36       ` Florian Weimer
2001-03-14 22:05 ` Laurent Guerby
2001-03-16 16:47   ` Robert A Duff
2001-03-16 19:46     ` Laurent Guerby
2001-03-16 20:10       ` Robert A Duff
2001-03-17 13:14         ` Support for per allocation pool selection (was: Better support for garbage collection) Laurent Guerby
2001-03-17 17:06           ` Robert A Duff
2001-03-17 19:19           ` Florian Weimer
2001-03-17 21:10             ` Robert A Duff
2001-03-15 17:56 ` Better support for garbage collection Ray Blaak
2001-03-21 16:15 ` Implementing C/C++ style #include bhazzard
2001-03-21 16:45   ` Marin David Condic
2001-03-22 15:13     ` Ira D. Baxter
2001-03-22 15:23       ` Marin David Condic
2001-03-25 15:45         ` Anton Gibbs
2001-03-26 14:24           ` Ted Dennison
2001-03-26 15:00             ` Marin David Condic
2001-03-26 14:49           ` Marin David Condic
2001-03-26 18:19             ` Stephen Leake
2001-03-26 18:44               ` Pascal Obry
2001-03-26 21:44                 ` Robert A Duff
2001-03-27  3:02                   ` Andrew Berg
2001-03-27  3:27                     ` Phaedrus
2001-03-27 17:41                   ` Pascal Obry
2001-03-26 19:18               ` Ted Dennison
2001-03-27 18:51                 ` Anton Gibbs
2001-03-26 19:35               ` Marin David Condic
2001-03-26 23:04                 ` Mark Lundquist
2001-03-27 14:38                   ` Marin David Condic
2001-03-26 16:12           ` Florian Weimer
2001-03-26 17:34             ` David Starner
2001-03-26 22:25               ` Florian Weimer
2001-03-27  3:29                 ` David Starner
2001-03-26 18:23             ` Stephen Leake
2001-03-26 22:34               ` Florian Weimer
2001-03-27  7:34         ` Ole-Hjalmar Kristensen
2001-03-27 12:43           ` Dale Stanbrough
2001-03-27 14:40             ` Marin David Condic
2001-03-27 15:01             ` Ted Dennison
2001-03-27 13:20           ` Preben Randhol
2001-03-23 17:39       ` Wes Groleau
2001-03-21 18:07   ` Mark Lundquist
2001-03-22 12:50   ` Chris M. Moore
2001-03-22 14:30     ` Marin David Condic
2001-03-22 21:15       ` singlespeeder
2001-03-22 21:42         ` Marin David Condic
2001-03-23 14:43           ` Georg Bauhaus
2001-03-23 18:51             ` Marin David Condic
2001-03-22 15:02     ` Pat Rogers
2001-03-22 15:28       ` Marin David Condic
2001-03-22 16:32       ` Chris M. Moore
2001-03-22 16:57       ` Robert A Duff
2001-03-26 16:13   ` Martin Dowie
2001-03-26 22:55   ` Phaedrus
2001-03-27  1:36     ` tmoran
replies disabled

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