POV-Ray : Newsgroups : povray.off-topic : Unexpected : Re: Unexpected Server Time
28 Jul 2024 16:31:44 EDT (-0400)
  Re: Unexpected  
From: Samuel Benge
Date: 17 Aug 2013 15:20:00
Message: <web.520fcbbc825e3e9f8cb76ff30@news.povray.org>
Orchid Win7 v1 <voi### [at] devnull> wrote:
> I'm sure there must be more evil ways of doing this...)

Here's one (probably not the best) way to do it:

return x*(1-2*(x<0));

Not sure how C# handles types, but in C that would return an int.

Thanks for the laughs, btw :) When Haskell isn't the main subject, you're
actually pretty funny ;)

Sam


Post a reply to this message

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