comp.lang.ada
 help / color / mirror / Atom feed
* Allocator Subtypes Question
@ 1986-09-05  6:42 Geoff Mendal
  1986-09-05 12:42 ` John B. Goodenough
  1986-09-05 17:30 ` arny
  0 siblings, 2 replies; 4+ messages in thread
From: Geoff Mendal @ 1986-09-05  6:42 UTC (permalink / raw)


Hello Ada Fans-

We've read LMC-AI 00324/02, and paragraphs 4.8:3-6 of the Language
Reference Manual, but still have a question concerning the behavior
of the following program:

  procedure Main is
    type A is access Integer range -10 .. 15;
    X : A;
  begin
    X := new Natural'(-5);
    ...
  end;

Does evaluation of the allocator raise Constraint_Error or not?
Why or why not.  We would appreciate appropriate LRM references
to back up any "interpretations".  Thanks in advance.

geoff & doug
-------

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~1986-09-10 20:14 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <14@<12236430813>
1986-09-10 20:14 ` Allocator Subtypes Question stt
1986-09-05  6:42 Geoff Mendal
1986-09-05 12:42 ` John B. Goodenough
1986-09-05 17:30 ` arny

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