comp.lang.ada
 help / color / mirror / Atom feed
From: Stribor40 <ikamzic@gmail.com>
Subject: calling function inside procedure call
Date: Fri, 3 Oct 2014 12:50:31 -0700 (PDT)
Date: 2014-10-03T12:50:31-07:00	[thread overview]
Message-ID: <78448f04-9371-4537-a40a-11bbbfb9b3d8@googlegroups.com> (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?


             reply	other threads:[~2014-10-03 19:50 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-10-03 19:50 Stribor40 [this message]
2014-10-03 19:56 ` calling function inside procedure call 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
replies disabled

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