Xref: utzoo comp.lang.c++:10345 alt.religion.computers:2042 Path: utzoo!utgpu!cs.utexas.edu!sdd.hp.com!zaphod.mps.ohio-state.edu!samsung!uunet!sco!seanf From: seanf@sco.COM (Sean Fagan) Newsgroups: comp.lang.c++,alt.religion.computers Subject: Re: C++ overloading (was Re: ANSI C prototypes) Message-ID: <8706@scolex.sco.COM> Date: 13 Nov 90 18:45:28 GMT References: <1990Nov6.002848.3634@clear.com> Sender: news@sco.COM Organization: The Santa Cruz Operation, Inc. Lines: 25 In article rang@cs.wisc.edu (Anton Rang) writes: > Will this be resolved to calling the 'int x(int y)' function and >promoting its return value to a double, calling the 'double' function >and promoting the integer argument to a double, or will it be >ambiguous? It becomes double(int x(int)) not ambiguous. > (In other words, are return types and parameters given equal weight >in disambiguating calls?) Return types are not used in C++ when choosing which function should be called. -- -----------------+ Sean Eric Fagan | "*Never* knock on Death's door: ring the bell and seanf@sco.COM | run away! Death hates that!" uunet!sco!seanf | -- Dr. Mike Stratford (Matt Frewer, "Doctor, Doctor") (408) 458-1422 | Any opinions expressed are my own, not my employers'.