From: drw@cullvax.UUCP
Subject: language problem
Date: Wed, 8-Apr-87 13:08:56 EST [thread overview]
Date: Wed Apr 8 13:08:56 1987
Message-ID: <1062@cullvax.UUCP> (raw)
keith@telesoft.UUCP (Keith Shillington @prodigal) writes:
> Dale Worley at Cullinet Software writes:
> > Is the following program required to raise CONSTRAINT_ERROR (or whatever)?
> >
> > procedure y is
> > subtype x is range 0..100;
> > a : x := 100;
> > begin
> > a := a + 1;
> > end y;
> >
> [keith replaces "subtype" with "type" so the code will compile.]
>
> So, making that suggested modification results in correct compilation
> with the runtime result:
>
> >>> Unhandled exception: CONSTRAINT_ERROR (Range Check)
> Raised in Y.Y at line 5
>
> So, yes, absolutely, constraint_error should be raised. [...]
But I am neither asking whether you thing that it should be raised,
nor whether your favorite implementation raises it, I am asking
whether the LRM *requires* that it be raised, or is an implementation
allowed to not raise it?
Sheesh! Don't people understand what *standards* are?
Dale
--
Dale Worley Cullinet Software
UUCP: ...!seismo!harvard!mit-eddie!cullvax!drw
ARPA: cullvax!drw@eddie.mit.edu
Un*x (a generic name for a class of OS's) != Unix (AT&T's brand of such)
next reply other threads:[~1987-04-08 18:08 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
1987-04-08 18:08 drw [this message]
-- strict thread matches above, loose matches on Subject: below --
1987-04-07 5:53 language problem drw
1987-04-08 1:11 ` keith
1987-04-03 10:35 ms8k#
[not found] <12291366595.33.BRYAN@Sierra.Stanford.EDU>
1987-04-02 20:22 ` ROSENBLUM
1987-04-03 14:49 ` dday
1987-04-06 13:26 ` eric
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