POV-Ray : Newsgroups : povray.off-topic : Unexpected : Re: Unexpected Server Time
28 Jul 2024 22:30:11 EDT (-0400)
  Re: Unexpected  
From: Orchid Win7 v1
Date: 18 Aug 2013 10:43:02
Message: <5210dd76$1@news.povray.org>
On 18/08/2013 02:23 PM, Warp wrote:
> Out of curiosity: Does C#, like C/C++, consider a non-boolean value as
> a valid boolean (where a boolean is expected)?

No.

(I just had to look that up.)

Apparently C# does not support implicit (or even explicit) conversion 
between bool and any other type.

Which is weird, because this is the exact same programming language 
where if you create an enum, it's actually just an int, as far as the 
type system is concerned...

(Oh, but bool isn't an enum. Naturally.)


Post a reply to this message

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