comp.lang.ada
 help / color / mirror / Atom feed
From: ROSENBLUM@SIERRA.STANFORD.EDU.UUCP
Subject: Re: language problem
Date: Thu, 2-Apr-87 15:22:39 EST	[thread overview]
Date: Thu Apr  2 15:22:39 1987
Message-ID: <12291368304.48.ROSENBLUM@Sierra.Stanford.EDU> (raw)
In-Reply-To: 12291366595.33.BRYAN@Sierra.Stanford.EDU

I think that the LRM is pretty clear on this point.

4.5.6 (2) says that the "not" operator takes a value of
any array of boolean components, and returns a value of
the same array type.  The important words here are SAME TYPE.
3.6 (5) says that an array type is characterized by
a set of index types and a component subtype.  Thus,
in the example the value of "not A" must be a value of
the type of A, which is ARR.  Since the resulting component
values do not satisfy the component subtype constraint,
the result is NOT a value of type ARR.  Ergo, CONSTRAINT_ERROR
must be raised by the evaluation of "not A".  Note that
the fact that the expression appears in an array assignment
is not germane; the evaluation of such a "not A" in any context
should raise CONSTRAINT_ERROR.

-- David.
-------

       reply	other threads:[~1987-04-02 20:22 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <12291366595.33.BRYAN@Sierra.Stanford.EDU>
1987-04-02 20:22 ` ROSENBLUM [this message]
1987-04-03 14:49   ` language problem dday
1987-04-06 13:26     ` eric
1987-04-08 18:08 drw
  -- strict thread matches above, loose matches on Subject: below --
1987-04-07  5:53 drw
1987-04-08  1:11 ` keith
1987-04-03 10:35 ms8k#
1987-04-01 23:58 ms8k#
1987-04-03  0:52 ` deller
1987-03-26 17:30 amiram
1987-04-01 15:05 ` joe
1987-04-01 20:12   ` cjh
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox