comp.lang.ada
 help / color / mirror / Atom feed
* What is an indefinite type and is there an example of it?
@ 2016-09-08  1:20 Andrew Shvets
  2016-09-08  2:39 ` Jeffrey R. Carter
  0 siblings, 1 reply; 2+ messages in thread
From: Andrew Shvets @ 2016-09-08  1:20 UTC (permalink / raw)


Hello,

I'm trying to figure out what an indefinite type is.  Ada Distilled doesn't even have the string "indefinite" in the entire document.  The Ada wikibook seems to say that it's a type of that does not have its range defined... ok, so does that make it an array that doesn't have it range defined at compile-time?  Is there more to this that I'm missing?

Also, I'm trying -- and not succeeding -- to make a minimum example of how to do this in Ada.  This is what I have so far and the compiler complains that there is no range defined.  My example could use some serious work.

with Ada.Text_IO;

procedure Indefinite_Type is
  type Unknown (<>) is ...;
  Integer : Unknown := 0;
begin
  null;
end Indefinite_Type;


Thank you in advance.

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

end of thread, other threads:[~2016-09-08  2:39 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-09-08  1:20 What is an indefinite type and is there an example of it? Andrew Shvets
2016-09-08  2:39 ` Jeffrey R. Carter

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