comp.lang.ada
 help / color / mirror / Atom feed
* ADA HELP
@ 1991-01-28  5:13 David Martin
  0 siblings, 0 replies; 2+ messages in thread
From: David Martin @ 1991-01-28  5:13 UTC (permalink / raw)


ALL:
  What is a good source for PD software and/or packages
for ADA? I'll be using ADA in an Operating Systems class
at school. I attend the University of Houston Clear Lake
in Houston, TX. Generic packages that deal with stacks
and queues would be most helpful I think. I'd like
to collect PD Ada code to help me at school.
David

-- 
 
David W. Martin c/o The OpCode Factory tm Seabrook, Texas, USA
Commodore might make the Amiga, but the Amiga makes it possible!
PLINK: DAVIDM CIS: 72510,3232 UUCP: davidm@sugar.hackercorp.com

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

* Re: Ada Help
       [not found] <3mrhq8$2tv@newshost.fiu.edu>
@ 1995-04-19  0:00 ` James A. Krzyzanowski
  0 siblings, 0 replies; 2+ messages in thread
From: James A. Krzyzanowski @ 1995-04-19  0:00 UTC (permalink / raw)


alexander m nolasco (anolas01@solix.fiu.edu) wrote:

: I created a generic binary search tree.  I declared BST as limited 
: private.  This generic pack will be implemented in a SET, but I have to 
: have access to BST type...

: I have done the following..

: type SET_TYPE is new T.BST_TYPE --Where T is an instantiation of BST(sp)

: It compiles, but any procedure that uses the OUT mode with will not compile..
: any help!?

From the Language Reference Manual:

paragraph 7.4.4(1)

"A limited type is a type for which neither ASSIGNMENT nor the predefined
comparison for equality and inequality is implicitly declared."

paragraph 7.4.4(4)

"For a formal parameter whose type is limited and whose declararation
occurs in an explicit subprogram declaration, the mode OUT is only allowed
if the type is private...The corresponding full type must not be limited
if the mode OUT is used for any such formal parameter."

What you need to do is use IN OUT and when you assign the "OUT" parameter
you need to define a function or procedure that EXPLICITLY makes that
assignment.

--
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
jakrzy@most.magec.com        Opinions_Expressed := (Mine and not Magnavox);
            "I'd rather be right than politically correct !!!"
---------------------------------------------------------------------------




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

end of thread, other threads:[~1995-04-19  0:00 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <3mrhq8$2tv@newshost.fiu.edu>
1995-04-19  0:00 ` Ada Help James A. Krzyzanowski
1991-01-28  5:13 ADA HELP David Martin

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