|
![](/i/fill.gif) |
"Christopher James Huff" <chr### [at] mac com> wrote in message
news:chr### [at] netplex aussie org...
> In article <3d517fdb@news.povray.org>,
> "Pandora" <pan### [at] pandora-software com> wrote:
> >
> > a=function1();
> > b=function2();
> > c=max(a,b);
>
> So something that looks like a function can't be used like one.
It may look like a function, that don't mean it is a function.
> That is
> not a solution, it is a workaround.
Writing your own templated min/max functions could be seen as a
'workaround'...
> Plus, it requires two temporary
> variables and three lines of code instead of one simple line.
>
So ?
> If you don't have [a compiler that allows you to use templates], get one.
>
I knew someone would say that... (and, yes, I do have one, sort of
(VC6))...
--
Pandora/Scott Hill/[::O:M:C::]Scorpion
Software Engineer.
http://www.pandora-software.com
Post a reply to this message
|
![](/i/fill.gif) |