comp.lang.ada
 help / color / mirror / Atom feed
* GNAT-2005
@ 2006-11-10  6:51 rashmi
  2006-11-10 10:52 ` GNAT-2005 Georg Bauhaus
                   ` (2 more replies)
  0 siblings, 3 replies; 12+ messages in thread
From: rashmi @ 2006-11-10  6:51 UTC (permalink / raw)


Dear all,

I have a problem with trying to understand GNAT's working for the
following:
________________________________________________________________________________
package PKGE_NasRdFuns is
	function FUNC_ScBAVCk(RE_ScBA : in RE_SclrBA; RE_CtBA : in RE_CatgBA)
return TF_Done;
	function FUNC_ScBAFCk(RE_ScBA : in RE_SclrBA; RE_CtBA : in RE_CatgBA)
return TF_Done;
--	function FUNC_ScP4VCk(RE_ScP4 : in RE_SclrP4; RE_CtP4 : in
RE_CatgP4) return TF_Done;
--	function FUNC_ScP4FCk(RE_ScP4 : in RE_SclrP4; RE_CtP4 : in
RE_CatgP4) return TF_Done;
	function FUNC_BAFDIRd(IN_FL04,IN_FL05,IN_NDim : in Integer) return
RE_BAFDIm;
	function FUNC_BAVCPRd(IN_VC02,IN_VC03 : in Integer) return RE_BAVCPo;
	function FUNC_BAVPLRd(IN_VC04,IN_VC05 : in Integer) return RE_BAVPLn;
	function FUNC_BAVMBRd(IN_VM02,IN_VM03 : in Integer) return RE_BAVMBr;
	function FUNC_BAFPLRd(IN_FF03,IN_FF04 : in Integer) return RE_BAFPLn;
	function FUNC_BAFORRd(IN_FL02,IN_FL03 : in Integer) return RE_BAFORn;
end PKGE_NasRdFuns ;
_____________________________________________________________________________

1. Given above is an ada spec package (.ads) PKGE_NASRdFuns with
specifications for many functions such as FUNC_ScBAVCk, FUNC_ScBAFCk,
etc.
2. Parameters such as RE_ScBA are records defined in another package,
while IN_VC02, IN_VC03 etc. are scalars.
3. I find that if I delete the first few lines that give specs for
FUNC_ScBAVCK or FUNC_ScBAFCk, for which records are parameters, and
then compile the package's body (.adb), GNAT does not report that
functions are undefined. On the other hand, if I delete a specs line
such as that for FUNC_BAVCPRd for which scalars are parameters, GNAT
immediately reports "function FUNC_BAVCPRd undefined" when I compile
the body.

I want to understand why GNAT has such a strange response, that is, why
it does not report "function undefined" for the former case.

Thanks in advance.
Rashmi.




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

end of thread, other threads:[~2006-11-15 22:57 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-11-10  6:51 GNAT-2005 rashmi
2006-11-10 10:52 ` GNAT-2005 Georg Bauhaus
2006-11-10 13:37 ` GNAT-2005 Stephen Leake
2006-11-10 16:56   ` GNAT-2005 Adam Beneschan
2006-11-12 18:55     ` GNAT-2005 Martin Krischik
2006-11-13 20:35       ` GNAT-2005 Simon Wright
2006-11-13 22:12         ` GNAT-2005 Jean-Pierre Rosen
2006-11-13 22:25         ` GNAT-2005 Georg Bauhaus
2006-11-13 23:41         ` GNAT-2005 Björn Persson
2006-11-14  7:16         ` GNAT-2005 Pascal Obry
2006-11-15 22:57           ` GNAT-2005 Simon Wright
2006-11-10 15:13 ` GNAT-2005 Wilhelm Spickermann

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