Path: csiph.com!eeepc.pasdenom.info!news.pasdenom.info!news.dougwise.org!gegeweb.org!news.linkpendium.com!news.linkpendium.com!newsfeeds.ihug.co.nz!lust.ihug.co.nz!ihug.co.nz!not-for-mail From: Lawrence D'Oliveiro Newsgroups: comp.lang.java.programmer Subject: Re: Java vs C++ Followup-To: comp.lang.java.programmer Date: Mon, 07 Feb 2011 19:09:50 +1300 Organization: Geek Central Lines: 14 Message-ID: References: <4d4d585c$0$81476$e4fe514c@news.xs4all.nl> <4d4d60dc$0$23763$14726298@news.sunsite.dk> <4d4d8322$0$41117$e4fe514c@news.xs4all.nl> <4d4f042b$0$23753$14726298@news.sunsite.dk> <4d4f4a54$0$23753$14726298@news.sunsite.dk> NNTP-Posting-Host: 118-92-86-70.dsl.dyn.ihug.co.nz Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8Bit X-Trace: lust.ihug.co.nz 1297058990 16463 118.92.86.70 (7 Feb 2011 06:09:50 GMT) X-Complaints-To: abuse@ihug.co.nz NNTP-Posting-Date: Mon, 7 Feb 2011 06:09:50 +0000 (UTC) User-Agent: KNode/4.4.7 Xref: csiph.com comp.lang.java.programmer:25895 In message <4d4f4a54$0$23753$14726298@news.sunsite.dk>, Arne Vajhøj wrote: > On 06-02-2011 19:04, Thomas Richter wrote: > >> And in C++, a compiler can also> merge template instances because they >> are identical, i.e. function alike, i.e. for example they all operate on >> pointers. > > Possible. But if two template usages are compiled separatetly, > then it is not possible. Exercise for the reader: explain why Arne Vajhøj is wrong. For extra credit, list the implicit preconceptions that might have led to such a wrong conclusion.