๐Ÿš€ go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: be.comp.programming
Article #8836

Friend functions in C++

#8836
From: HardCase
Date: Wed, 05 Jun 2002 19:39
12 lines
1498 bytes
Ik snap het principe wel van friend functions, maar toch snap ik het
niet helemaal. In mijn boek (C++ in 21 days, pag. 562 e.v.) cre๏ฟฝren we
zelf een String-klasse die ook operator+ overloadt. Hoe kan de compiler
nu weten als ik main die + oproep met een C-String in welke klasse hij
moet gaan zoeken om die functie te vinden.

THX
-- 
PENTIUM = Produces Erroneous Numbers Thru Incorrect Understanding of
Math
*	MSN dhertsen_2@hotmail.com		ICQ 157482585
*	http://www.sphosting.com/dietmar
Technical Details
Message-ID: <3CFE688B.5EBDF5F5@tiscali.be>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!supernews.com!peer.news.opaltelecom.net!iad-peer.news.verio.net!news.verio.net!skynet.be!skynet.be!ossa.telenet-ops.be!afrodite.telenet-ops.be.POSTED!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: DUTCH,ASCII
X-Google-Thread: fcea4,6916dc67502b3f8b,start
X-Google-Attributes: gidfcea4,public
X-Google-ArrivalTime: 2002-06-05 12:39:51 PST
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!supernews.com!peer.news.opaltelecom.net!iad-peer.news.verio.net!news.verio.net!skynet.be!skynet.be!ossa.telenet-ops.be!afrodite.telenet-ops.be.POSTED!not-for-mail
Message-ID: <3CFE688B.5EBDF5F5@tiscali.be>
From: HardCase <dhertsen@tiscali.be>
X-Mailer: Mozilla 4.72 [en] (Win98; I)
X-Accept-Language: nl
MIME-Version: 1.0
Newsgroups: be.comp.programming
Subject: Friend functions in C++
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: 8bit
Lines: 12
Date: Wed, 05 Jun 2002 19:39:50 GMT
NNTP-Posting-Host: 213.224.209.201
X-Complaints-To: abuse@telenet.be
X-Trace: afrodite.telenet-ops.be 1023305990 213.224.209.201 (Wed, 05 Jun 2002 21:39:50 MET DST)
NNTP-Posting-Date: Wed, 05 Jun 2002 21:39:50 MET DST
Organization: Telenet Internet