comp.lang.ada
 help / color / mirror / Atom feed
From: "RasikaSrinivasan@gmail.com" <RasikaSrinivasan@gmail.com>
Subject: Curious function signature issue
Date: Thu, 24 Oct 2013 14:12:28 -0700 (PDT)
Date: 2013-10-24T14:12:28-07:00	[thread overview]
Message-ID: <eb5ecb8f-461b-4852-a5cc-96d9e897610a@googlegroups.com> (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

             reply	other threads:[~2013-10-24 21:12 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-10-24 21:12 RasikaSrinivasan [this message]
2013-10-24 22:03 ` Curious function signature issue Jeffrey Carter
2013-10-24 22:04 ` Adam Beneschan
replies disabled

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