Article View: borland.public.cppbuilder.upgrade
Article #80function scope
From: Al
Date: Fri, 30 Nov 2007 21:48
Date: Fri, 30 Nov 2007 21:48
15 lines
1689 bytes
1689 bytes
I've just upgraded from c++builder 4 to 5 (I know I'm behind the times still) and I've got this strange behaviour: in unit1.cpp i've got myfunc() - declaration in the source file not the header in unit2.cpp i've got another myfunc()- declaration in the source file not the header any calls to myfunc from unit2 go to the function in unit1 I've done full recompiles, deleted .obj files. I know about namespaces but surely the local scope should always have precedent, or am I wrong?
Technical Details
Message-ID:
<fiq04h$doa$1@registered.motzarella.org>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!feeder1-2.proxad.net!proxad.net!feeder1-1.proxad.net!club-internet.fr!feedme-small.clubint.net!news.motzarella.org!motzarella.org!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Thread: 10529a,10e37a444c328682,start X-Google-Attributes: gid10529a,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!feeder1-2.proxad.net!proxad.net!feeder1-1.proxad.net!club-internet.fr!feedme-small.clubint.net!news.motzarella.org!motzarella.org!not-for-mail From: Al <alalal@bigfoot.com> Newsgroups: borland.public.cppbuilder.upgrade Subject: function scope Date: Fri, 30 Nov 2007 21:48:02 +0000 Organization: A noiseless patient Spider Lines: 15 Message-ID: <fiq04h$doa$1@registered.motzarella.org> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: feeder.motzarella.org U2FsdGVkX18aQBEKwU7Yz2VJbky0D/aMAbChUbvk1WST+rMzHu8Z4hLsZ4iLq9dHukUA3l9g808xqavpy+vfxeQbECMODXFjf/xBpdD/C0/TxXr+zHVKAF9zAH4UmWesj/L7I6oMPDN9X2z6krGZdQ== X-Complaints-To: Please send complaints to abuse@motzarella.org with full headers NNTP-Posting-Date: Fri, 30 Nov 2007 21:42:42 +0000 (UTC) X-Auth-Sender: U2FsdGVkX1+09gyBVjpHMrHPVV8kw7t1QvFOB28jj5TKQ+BN80Nmjw== Cancel-Lock: sha1:E0i5YK9YY7Dvirt/E0jxFs4Ktzo= User-Agent: Thunderbird 2.0.0.9 (Windows/20071031)