POV-Ray : Newsgroups : povray.off-topic : A question about Java generics (not a flame) : Re: A question about Java generics (not a flame) Server Time
7 Sep 2024 19:14:07 EDT (-0400)
  Re: A question about Java generics (not a flame)  
From: Warp
Date: 17 May 2008 07:41:18
Message: <482ec45e@news.povray.org>
Fredrik Eriksson <fe79}--at--{yahoo}--dot--{com> wrote:
> On Sat, 17 May 2008 10:36:31 +0200, Warp <war### [at] tagpovrayorg> wrote:
> >   Sorry, I still don't understand this.
> >
> >   I tried my foo-bar example making the bar() function a template which  
> > was
> > specialized in one of the compilation units but not the other, and at  
> > least
> > gcc still behave in the same way: When foo() was not inlined, only one
> > version of bar() was called: The specialized version was never called.

> Your foo-bar example is ill-formed. The compiler can do whatever it wants.

  How is it different from your example, which you gave earlier? Also you
had a template function calling another template function, and the latter
being specialized in the context of instantiating the former. That's exactly
what I did.

-- 
                                                          - Warp


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.