Re: optional argument versus subroutine overloading



Steve Lionel wrote:
| reubendb wrote:
|
|| Is function/subroutine overloading actually resolved
|| during compilation, or during run time, as in the case of presence
|| test ?
|
| Overloading is typically resolved at compile time. I'd be astonished
| if any implementation did it differently.

....and testing for presence of optional arguments, while not "free",
is extremely cheap. Thus, no real performance concerns in any case.


--
Jugoslav
___________
www.xeffort.com

Please reply to the newsgroup.
You can find my real e-mail on my home page above.
.



Relevant Pages

  • Re: optional argument versus subroutine overloading
    ... || during compilation, or during run time, as in the case of presence ... ...and testing for presence of optional arguments, while not "free", ... no real performance concerns in any case. ...
    (comp.lang.fortran)
  • optional argument versus subroutine overloading
    ... while if doing I need to repeat some part of codes that are ... presence test) is going to be called many times ... Is function/subroutine overloading actually resolved ...
    (comp.lang.fortran)
  • Re: GCC 4.2 available
    ... Then you will be able to complete your compilation! ... configure: WARNING: float.h: check for missing prerequisite headers? ... checking endian.h usability... ... checking endian.h presence... ...
    (comp.sys.atari.st)