comp.lang.ada
 help / color / mirror / Atom feed
From: jakrzy@ss2.magec.com (James A. Krzyzanowski)
Subject: Re: Linked List within a record?
Date: 1996/05/07
Date: 1996-05-07T00:00:00+00:00	[thread overview]
Message-ID: <Dr21wM.Cvx@most.fw.hac.com> (raw)
In-Reply-To: 4mjpb7$4gr@pine.cse.nau.edu


Alvin A Begaye (aab@pine.cse.nau.edu) wrote:

: Why won't this work

: package MyList is new gen_linked_list( Integer, "=" );

: type arggh is record
:   ID          : Integer;
:   IntList     : MyList.List;
: end record;


: when i compile i get. completion of nonlimited type cannot be limited.

: is there a way to do this?

I'm assuming type List must be limited private which means that any type
that uses type List as a component must also be limited private.

type arggh is limited private;

private

  type arggh is ...

end;

--
Not necessarily the opinion of the company...
--
---------------------------------------------------------------------------
         James A. Krzyzanowski - Senior Software Engineer - AFATDS
Magnavox Electronic Systems Company * Fort Wayne, IN 46808 * (219) 429-6446
Internet: jakrzy@most.fw.hac.com * AOL: JimShiz@AOL.com * MOST: jakrzy@most
     "I'd rather be right than politically correct !!!" - Rush is Right
---------------------------------------------------------------------------




  reply	other threads:[~1996-05-07  0:00 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1996-05-05  0:00 Linked List within a record? Alvin A Begaye
1996-05-07  0:00 ` James A. Krzyzanowski [this message]
1996-05-09  0:00 ` Jerome Desquilbet
replies disabled

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