comp.lang.ada
 help / color / mirror / Atom feed
From: Andrew Shvets <andrew.shvets@gmail.com>
Subject: What is an indefinite type and is there an example of it?
Date: Wed, 7 Sep 2016 18:20:16 -0700 (PDT)
Date: 2016-09-07T18:20:16-07:00	[thread overview]
Message-ID: <09169c05-5c31-40a6-8523-89aab3bca72e@googlegroups.com> (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.

             reply	other threads:[~2016-09-08  1:20 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-09-08  1:20 Andrew Shvets [this message]
2016-09-08  2:39 ` What is an indefinite type and is there an example of it? Jeffrey R. Carter
replies disabled

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