🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: be.comp.programming
Article #4600

Re: scope probleem (denk ik) in vc++

#4600
From: Nicolas Barbier
Date: Tue, 15 Jul 2003 19:14
30 lines
2127 bytes
Harbinger of Doom wrote:

> Sorry voor de engelse tekst,
> maar kheb dit berichtje in verschillende nieuwsgroepen gepost
> en kben vanavond te lui om het naar 't nederlands
> te vertalen!

Multiposten wordt als "extreem evil" beschouwd op USENET.

> void Node::connect()
> {
>      NodeHttpConnection connection; //init connection
>      connection.setIP(this->getIPString()); //set IP
>      connection.setPort(this->getPort()); //set port
> 
>      connected = connection.connect(); //try to connect  (connected is a
>                                           //BOOL with class-scope)
> }
> 
> yet when I declare 'connection' in the class definition of 'Node' (instead
> of in the Node::connect() function)
> so that it would have class-scope,
> I get compile errors whenever I use a Node object.

Als in "Node" een "NodeHttpConnection" zit ingebed, wordt van het 2e de 
copy-constructor aangeroepen telkens de copy-constructor van "Node" wordt 
aangeroepen (als je er zelf geen hebt gedefinieerd voor "Node").

-- 
Nicolas Barbier
Technical Details
Message-ID: <3f1452ac$0$6523$afc38c87@sisyphus.news.be.easynet.net>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-03!sn-xit-01!sn-xit-08!supernews.com!news.tele.dk!news.tele.dk!small.news.tele.dk!oleane.net!oleane!easynet-quince!easynet.net!feed1.news.be.easynet.net!sisyphus.news.be.easynet.net!not-for-mail
References: <A6YQa.12562$x86.1129888907@hestia.telenet-ops.be>

Show Full Headers
Complete Article Headers
X-Google-Language: DUTCH,ASCII-7-bit
X-Google-Thread: fcea4,95543aa8161eaaf9
X-Google-Attributes: gidfcea4,public
X-Google-ArrivalTime: 2003-07-15 12:20:06 PST
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-03!sn-xit-01!sn-xit-08!supernews.com!news.tele.dk!news.tele.dk!small.news.tele.dk!oleane.net!oleane!easynet-quince!easynet.net!feed1.news.be.easynet.net!sisyphus.news.be.easynet.net!not-for-mail
Message-ID: <3f1452ac$0$6523$afc38c87@sisyphus.news.be.easynet.net>
From: Nicolas Barbier <anti@spam.invalid>
Subject: Re: scope probleem (denk ik) in vc++
Newsgroups: be.comp.programming
Date: Tue, 15 Jul 2003 21:14:02 +0200
References: <A6YQa.12562$x86.1129888907@hestia.telenet-ops.be>
User-Agent: KNode/0.6.1
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7Bit
Lines: 30
Organization: [ posted via Easynet Belgium ]
NNTP-Posting-Date: 15 Jul 2003 19:14:52 GMT
NNTP-Posting-Host: 213.193.183.47
X-Trace: 1058296492  6523 [::ffff:213.193.183.47]:32801
X-Complaints-To: abuse@be.easynet.net