comp.lang.ada
 help / color / mirror / Atom feed
* pass in parameters
@ 2010-05-11 17:20 moongeegee
  2010-05-11 17:55 ` mockturtle
  0 siblings, 1 reply; 2+ messages in thread
From: moongeegee @ 2010-05-11 17:20 UTC (permalink / raw)


I am very new in ADA and trying to solve some issues on ADA. The codes
are not
written by me. Please help.
I have a procedure has 4 pass in parameters as below. myInter.Init has
only two parameters.
Does it mean myInter call other procedure Init, not the one below?


procedure Init
  (init_file                : in string;
   sname             : in string;
   sate              : in integer;
   cstate : in CState_type) is


begin

      myInter.Init
       (SFile, tName);


end;



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

* Re: pass in parameters
  2010-05-11 17:20 pass in parameters moongeegee
@ 2010-05-11 17:55 ` mockturtle
  0 siblings, 0 replies; 2+ messages in thread
From: mockturtle @ 2010-05-11 17:55 UTC (permalink / raw)


On May 11, 7:20 pm, moongeegee <jenny.kh...@gmail.com> wrote:
> I am very new in ADA

welcome aboard!

> and trying to solve some issues on ADA. The codes are not
> written by me. Please help.
> I have a procedure has 4 pass in parameters as below. myInter.Init has
> only two parameters.
> Does it mean myInter call other procedure Init, not the one below?

Yes, if this is an actual code excerpt, the procedure Init does not
call recursively itself.  From your example it is not clear if myInter
is a package or a tagged record, but the difference in the number of
parameter suffices to grant that the called Init is another Init.

Oh, by the way... It is "Ada" and not "ADA", it is not an acronym, but
a name :-)

>
> procedure Init
>   (init_file                : in string;
>    sname             : in string;
>    sate              : in integer;
>    cstate : in CState_type) is
>
> begin
>
>       myInter.Init
>        (SFile, tName);
>
> end;




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

end of thread, other threads:[~2010-05-11 17:55 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-05-11 17:20 pass in parameters moongeegee
2010-05-11 17:55 ` mockturtle

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