POV-Ray : Newsgroups : povray.off-topic : Unexpected : Re: Unexpected Server Time
28 Jul 2024 22:26:45 EDT (-0400)
  Re: Unexpected  
From: Warp
Date: 18 Aug 2013 09:23:49
Message: <5210cae4@news.povray.org>
clipka <ano### [at] anonymousorg> wrote:
> Am 18.08.2013 14:27, schrieb Warp:
> > Orchid Win7 v1 <voi### [at] devnull> wrote:
> >> But you can phrase that as
> >
> >>     return x ? x : -x;
> >
> > No, you can't.
> >
> > Don't blame others for doing mistakes if you are doing them yourself. ;)

> It's a creative way of writing "return x" though ;-)

Out of curiosity: Does C#, like C/C++, consider a non-boolean value as
a valid boolean (where a boolean is expected)?

I know that there are some languages that don't, but on the other hand.
C# is kind of in the C family of languages...

-- 
                                                          - Warp


Post a reply to this message

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