Re: Easy question about Character manipulation



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.

--
Regards,
Dmitry A. Kazakov
http://www.dmitry-kazakov.de
.



Relevant Pages

  • Re: Ranges and (non)static constraints
    ... Dmitry A. Kazakov a écrit: ... subtype S is T range 1..N; ... And with reason. ...
    (comp.lang.ada)
  • Re: Usage of in Ada
    ... Dmitry A. Kazakov wrote: ... provided that the source representation is explicitly stated as irrelevant. ... According to ARM this program could be illegal, without obvious reason. ...
    (comp.lang.ada)