🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: net.lang.c++
Article #85

Function Overloading

#85
From: Bob Marti
Date: Tue, 11 Mar 1986 18:09
26 lines
957 bytes
Assume the following declarations:

	int i;

	int f(int x)
	{
		// some code
	}

	overload f;
	float f(int x)
	{
		// some code
	}


and the following call of function f:

	(void) f(i);

Which function will be called, the one corresponding to int f(int x) or the
one corresponding to float f(int x)?

Bob Marti, Sun Microsystems
ARPA: rmarti@sun.arpa
UUCP: ... {decvax, hplabs, ihnp4, seismo, ucbvax}!sun!rmarti
Technical Details
Message-ID: <3348@sun.uucp>
Path: arc1-ca.pugleaf.net!utzoo!watmath!clyde!burl!ulysses!bellcore!decvax!decwrl!sun!rmarti

Show Full Headers
Complete Article Headers
Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Posting-Version: version B 2.10.2 9/18/84 SMI; site sun.uucp
Path: arc1-ca.pugleaf.net!utzoo!watmath!clyde!burl!ulysses!bellcore!decvax!decwrl!sun!rmarti
From: rmarti@sun.uucp (Bob Marti)
Newsgroups: net.lang.c++
Subject: Function Overloading
Message-ID: <3348@sun.uucp>
Date: Tue, 11-Mar-86 13:09:05 EST
Article-I.D.: sun.3348
Posted: Tue Mar 11 13:09:05 1986
Date-Received: Fri, 14-Mar-86 04:09:34 EST
Distribution: net
Organization: Sun Microsystems, Inc.
Lines: 26