Re: Easy question about Character manipulation



Robert A Duff schrieb:
"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.

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
.



Relevant Pages

  • Re: Rolling Stones
    ... claudel wrote: ... No wonder Robert hasn't aged well. ... I wondered if there was another reason for the cancellation. ... >>It definitely sounds like you have been to A LOT more concerts than me. ...
    (alt.vacation.las-vegas)
  • Re: Rolling Stones
    ... No wonder Robert hasn't aged well. ... I wondered if there was another reason for the cancellation. ... I love Las Vegas. ... Claude ...
    (alt.vacation.las-vegas)
  • RE: Who changed /proc/<pid>/ in 2.6.0-test5-bk9?
    ... Robert, ... however just becouse you don't see a reason why someone would want to ... Linux has 'clone this process/thread and share the following items', ... > But the same isn't true of file descriptors or a lot of other software- ...
    (Linux-Kernel)
  • Re: OOP/OOD Philosophy
    ... Robert C. Martin wrote: ... > are will change at a different rate than business rules. ... This is one reason I like data dictionaries: ...
    (comp.object)
  • Re: Best footie for years
    ... No reason, it's just magic. ... So "Robert" ... >>While ever your away with your head in that blog, ...
    (misc.writing)