POV-Ray : Newsgroups : povray.off-topic : Unexpected : Re: Unexpected Server Time
28 Jul 2024 22:20:38 EDT (-0400)
  Re: Unexpected  
From: scott
Date: 20 Aug 2013 10:33:16
Message: <52137e2c$1@news.povray.org>
>> int abs(int input)
>>> {
>>> int value = 0;
>>> for (int n = input; n != 0; n++)
>>> {
>>> value++;
>>> }
>>> return value;
>>> }
>>
>> That's a pretty epic fail.
>
> As I say, the impressive thing is that it's a correct (yet inefficient)
> implementation of negate().

Yes, there must be a prize for that somewhere, but presumably not one 
that involves working at your company :-) I wonder what would have 
happened if you'd asked him to implement an "add" function...?


Post a reply to this message

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