comp.lang.ada
 help / color / mirror / Atom feed
From: Wes Groleau <wesgroleau@despammed.com>
Subject: Re: LRM:3.10.1(5), Can't reference incomplete type compile error
Date: Mon, 21 Oct 2002 10:10:27 -0500
Date: 2002-10-21T10:10:27-05:00	[thread overview]
Message-ID: <DNUs9.1537$Bd4.11831@dfw-service2.ext.raytheon.com> (raw)
In-Reply-To: mailman.1035040502.4893.comp.lang.ada@ada.eu.org


> Error: line 24 col 48 LRM:3.10.1(5), Can't reference incomplete type

> PRIVATE
> type reservation;
> type louer is access reservation;
> 
> procedure allouer_res (ptr_reservation   : in out louer ;
>                        objet_reservation : in     reservation);  -- ERROR

Since the structure of "reservation" is not defined, the compiler
has no way of generating the calling code to prepare to pass one
of them in to the procedure.  If the compiler were to use ESP or
looking elsewhere to find out the structure, it would be violating
other rules in addition to the rule cited.




      parent reply	other threads:[~2002-10-21 15:10 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-10-19 15:14 LRM:3.10.1(5), Can't reference incomplete type compile error Dominic D'Apice
2002-10-19 15:49 ` Robert A Duff
2002-10-21 15:10 ` Wes Groleau [this message]
replies disabled

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