comp.lang.ada
 help / color / mirror / Atom feed
* calling function inside procedure call
@ 2014-10-03 19:50 Stribor40
  2014-10-03 19:56 ` Adam Beneschan
  2014-10-03 20:42 ` Marius Amado-Alves
  0 siblings, 2 replies; 9+ messages in thread
From: Stribor40 @ 2014-10-03 19:50 UTC (permalink / raw)


my skeleton code looks something like this.....

procedure Something

   --some declarations
   --
   --

   function myFunction (a: in String) return Boolean;

   function myFunction (a: in String) return Boolean is
   
       begin
 
          Put(a,3);   
          return true;
       end;


begin
...

..
  myFunction("Hello World");
...

..

end Something;

i am getting error "cant use function myFunction in a procedure call.

How would I make a call to myFunction?


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

end of thread, other threads:[~2014-10-04  6:12 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-10-03 19:50 calling function inside procedure call Stribor40
2014-10-03 19:56 ` Adam Beneschan
2014-10-03 19:57   ` Stribor40
2014-10-03 20:42 ` Marius Amado-Alves
2014-10-04  1:07   ` Stribor40
2014-10-04  3:33     ` Shark8
2014-10-04  4:31       ` Jeffrey Carter
2014-10-04  6:12         ` Shark8
2014-10-04  1:08   ` Stribor40

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