Re: Easy question about Character manipulation
- From: Robert A Duff <bobduff@xxxxxxxxxxxxxxxxxxxx>
- Date: Tue, 30 Jan 2007 16:39:23 -0500
"Dmitry A. Kazakov" <mailbox@xxxxxxxxxxxxxxxxx> writes:
On Tue, 30 Jan 2007 15:24:45 -0500, Robert A Duff wrote:
"Jeffrey R. Carter" <jrcarter@xxxxxxx> 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.
And the name for Standard.Integer should be
Not_Standard_At_All.Machine_Integer. ;-)
- Bob
.
- Follow-Ups:
- Re: Easy question about Character manipulation
- From: Martin Krischik
- Re: Easy question about Character manipulation
- From: Dmitry A. Kazakov
- Re: Easy question about Character manipulation
- References:
- Easy question about Character manipulation
- From: mark
- Re: Easy question about Character manipulation
- From: Martin Krischik
- Re: Easy question about Character manipulation
- From: Jeffrey R. Carter
- Re: Easy question about Character manipulation
- From: Robert A Duff
- Re: Easy question about Character manipulation
- From: Dmitry A. Kazakov
- Easy question about Character manipulation
- Prev by Date: Re: Reading Float Data from a binary file into ada
- Next by Date: Re: How come Ada isn't more popular?
- Previous by thread: Re: Easy question about Character manipulation
- Next by thread: Re: Easy question about Character manipulation
- Index(es):