Re: Easy question about Character manipulation



"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
.