comp.lang.ada
 help / color / mirror / Atom feed
* Curious function signature issue
@ 2013-10-24 21:12 RasikaSrinivasan
  2013-10-24 22:03 ` Jeffrey Carter
  2013-10-24 22:04 ` Adam Beneschan
  0 siblings, 2 replies; 3+ messages in thread
From: RasikaSrinivasan @ 2013-10-24 21:12 UTC (permalink / raw)


all

I have a package P that looks like this:

package P is
   type Person_Type is private ;
   function Create( targetsfile : String := "targets.dat" ;
                    basalfile : String := "basal.dat" ;
                    isffile : String := "isf.dat" ;
                    icrfile : String := "icr.dat" )
                   return Person_Type ;
   function Create return Person_Type ;
   
....
....
end P ;

I am curious how gnat (2013 if it matters) can distinguish between the two overloaded "Create" functions?

The project built successfully though I am yet to exercise the runtime.

thanks for any clues, srini

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

end of thread, other threads:[~2013-10-24 22:04 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-10-24 21:12 Curious function signature issue RasikaSrinivasan
2013-10-24 22:03 ` Jeffrey Carter
2013-10-24 22:04 ` Adam Beneschan

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