comp.lang.ada
 help / color / mirror / Atom feed
From: Robert A Duff <bobduff@shell01.TheWorld.com>
Subject: Re: Ranges and (non)static constraints
Date: Sun, 19 Nov 2006 17:51:04 -0500
Date: 2006-11-19T17:51:04-05:00	[thread overview]
Message-ID: <wcck61rxd7r.fsf@shell01.TheWorld.com> (raw)
In-Reply-To: siP7h.242316$FQ1.162316@attbi_s71

"Jeffrey R. Carter" <spam.not.jrcarter@acm.not.spam.org> writes:

> Robert A Duff wrote:
>> What's NINA?
>
> It's the name I've given to the language I've been thinking about for
> some time. NINA is an acronym; it stands for NINA Is Not Ada.

OK.  I'm sure I will enjoy reading the RM for it someday.

But are you sure you want to define it by what it is NOT,
rather than what it IS?  ;-)

>> Well, I'll quibble with your names, here.  When God created the
>> integers, He didn't say they stop at 2**31-1 or 2**64 or whatever!
>> The term "integer" (or the abbreviation "int") ought to mean the true
>> unbounded integers.  Names like Unbounded_Integer and _universal_integer
>> are an abomination.  ;-)
>
> You may have a point, there. What do you think the Ada type Integer
> should be called, if Integer referred to Z?
> String_Index_And_Exponentiation_Value seems a bit excessive to me, but
> perhaps the concepts should be separated.

String_Index seems reasonable for indexing strings.  Machine_Integer
seems reasonable for a type that matches the machine's register size
(but it should not be in Standard).  I think one wants a way to say
(e.g.) that a type ranges from 1 up to at least a million, but it's fine
to go beyond that, and please make it efficient (for example, perhaps
round it up to 2**31-1).

Instead of Machine_Integer, perhaps we want a way to define a type that
can count the number of Mumble objects, given that if we create more
than some number of Mumble objects, or an array of them, we can be sure
this count will not overflow.  That is, we would have run out of
(virtual) memory before that count overflows.

- Bob



  parent reply	other threads:[~2006-11-19 22:51 UTC|newest]

Thread overview: 35+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-11-16 11:02 Ranges and (non)static constraints Maciej Sobczak
2006-11-16 12:23 ` Martin Krischik
2006-11-16 13:23   ` Maciej Sobczak
2006-11-16 19:01     ` Jeffrey R. Carter
2006-11-18  0:02   ` Robert A Duff
2006-11-16 13:13 ` Dmitry A. Kazakov
2006-11-16 17:18   ` Jean-Pierre Rosen
2006-11-17  9:08     ` Dmitry A. Kazakov
2006-11-17 10:30       ` Stuart
2006-11-17 10:37       ` Jean-Pierre Rosen
2006-11-17 14:57         ` Dmitry A. Kazakov
2006-11-17 16:04           ` Jean-Pierre Rosen
2006-11-18  9:51             ` Dmitry A. Kazakov
2006-11-18 14:17             ` Stephen Leake
2006-11-17 20:05           ` Jeffrey R. Carter
2006-11-17 23:58             ` Robert A Duff
2006-11-18  9:47               ` Dmitry A. Kazakov
2006-11-19  2:27               ` Jeffrey R. Carter
2006-11-19 12:13                 ` Björn Persson
2006-11-19 22:51                 ` Robert A Duff [this message]
2006-11-20  3:51                   ` Jeffrey R. Carter
2006-11-21 21:02                     ` Robert A Duff
2006-11-20 17:35                   ` Adam Beneschan
2006-11-17 15:45         ` Maciej Sobczak
2006-11-17 16:45           ` Jean-Pierre Rosen
2006-11-17 10:39       ` AW: " Grein, Christoph (Fa. ESG)
2006-11-17 11:20         ` Dmitry A. Kazakov
2006-11-17 13:30           ` Stuart
2006-11-17 15:07             ` Dmitry A. Kazakov
2006-11-17 16:47               ` Jean-Pierre Rosen
2006-11-20 14:08               ` Stuart
2006-11-20 14:12                 ` Stuart
2006-11-20 15:48                   ` Dmitry A. Kazakov
2006-11-16 18:56   ` Jeffrey R. Carter
2006-11-16 20:00 ` Adam Beneschan
replies disabled

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