comp.lang.ada
 help / color / mirror / Atom feed
From: Martin Krischik <krischik@users.sourceforge.net>
Subject: Re: Easy question about Character manipulation
Date: Wed, 31 Jan 2007 12:22:37 +0100
Date: 2007-01-31T12:22:37+01:00	[thread overview]
Message-ID: <45c07bfd$1@news.post.ch> (raw)
In-Reply-To: <wcc1wlc8a9g.fsf@shell01.TheWorld.com>

Robert A Duff schrieb:
> "Dmitry A. Kazakov" <mailbox@dmitry-kazakov.de> writes:
> 
>> On Tue, 30 Jan 2007 15:24:45 -0500, Robert A Duff wrote:
>>
>>> "Jeffrey R. Carter" <jrcarter@acm.org> writes:
>>>
>>>> Let me emphasize:
>>>>
>>>> Size : constant := 10;
>>>>
>>>> There's no reason for Size to be an object, much less a variable.
>>> I agree that it should probably be constant, but why not give it a type,
>>> as in:
>>>
>>>     Size : constant Integer := 10;
>>>
>>> I think named numbers are a kludge, and should usually be avoided.
>> I would agree if Universal_Integer were a proper type name. Integer tells
>> too much.
> 
> Well, Universal_Integer is just Root_Integer'Class.  But I agree, they
> should have names.  Actually, the name for Root_Integer should be
> Integer.

You are aware that this would mean Integer'Size=64 for GNAT?

> And the name for Standard.Integer should be
> Not_Standard_At_All.Machine_Integer.  ;-)

Don't forget Standard.String_Index - or do you thing that a 64 bit 
string index has it's uses?

Martin



  parent reply	other threads:[~2007-01-31 11:22 UTC|newest]

Thread overview: 27+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-01-29 20:01 Easy question about Character manipulation mark
2007-01-29 20:17 ` Dmitry A. Kazakov
2007-01-29 21:30   ` Georg Bauhaus
2007-01-30  0:51     ` (see below)
2007-01-30  1:43       ` Georg Bauhaus
2007-01-30  2:09         ` (see below)
2007-01-30 20:18           ` Robert A Duff
2007-01-30 21:07             ` (see below)
2007-01-30 22:05               ` Robert A Duff
2007-01-31  3:07                 ` (see below)
2007-01-31 18:11               ` Jeffrey R. Carter
2007-01-31 21:02                 ` (see below)
2007-01-31 23:01                   ` Robert A Duff
2007-01-31 23:23                     ` (see below)
2007-01-31 23:46                   ` Jeffrey R. Carter
2007-02-01  0:07                     ` (see below)
2007-01-30 21:08             ` Dmitry A. Kazakov
2007-01-31 16:54           ` Georg Bauhaus
2007-01-31 17:24             ` (see below)
2007-01-30 12:28 ` Martin Krischik
2007-01-30 17:50   ` Jeffrey R. Carter
2007-01-30 20:24     ` Robert A Duff
2007-01-30 21:12       ` Dmitry A. Kazakov
2007-01-30 21:39         ` Robert A Duff
2007-01-31 10:55           ` Dmitry A. Kazakov
2007-01-31 11:22           ` Martin Krischik [this message]
2007-01-31 18:14       ` Jeffrey R. Carter
replies disabled

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