Re: Easy question about Character manipulation



On 31/1/07 18:11, in article NZ4wh.374843$1i1.113582@attbi_s72, "Jeffrey R.
Carter" <jrcarter@xxxxxxx> wrote:

When I learned Pascal (not ISO), my understanding was that

type
A = 1 .. 3;

was called a subrange, and defined A as what Ada calls a subtype of
Integer. Since

B = 1 .. 3;

was another subtype of the same type (in Ada terms), assignment between
them was no problem.

That is the practical effect, but it is not what the formal semantics
actually says. And, of course, there is more to type than assignment.

--
Bill Findlay
<surname><forename> chez blueyonder.co.uk


.



Relevant Pages

  • Re: Easy question about Character manipulation
    ... var parameters must be of equivalent types, ... was another subtype of the same type (in Ada terms), assignment between them was no problem. ...
    (comp.lang.ada)
  • Re: Defined ranges
    ... assignment, I get this error message. ... allowed as primaries. ... denoting a type or subtype. ...
    (comp.lang.vhdl)
  • Re: Padding strings
    ... it's all a bit magical but the aggregate can work out its ... subtype from the other side of the assignment. ... DOULOS - Developing Design Know-how ...
    (comp.lang.vhdl)
  • Re: Defined ranges
    ... assignment, ... allowed as primaries. ... denoting a type or subtype. ... The Modelsim 6.0a compiler accepts the following without error: ...
    (comp.lang.vhdl)
  • Re: types and subtypes
    ... A subtype is not a type; no constraint is added to the type; the ... when an assignment to a variable of a ... problems as all values involved are of type Integer. ... Hope this helps in understanding ...
    (comp.lang.ada)