POV-Ray : Newsgroups : povray.off-topic : C# 4.0 Default parameters : Re: C# 4.0 Default parameters Server Time
9 Oct 2024 16:14:21 EDT (-0400)
  Re: C# 4.0 Default parameters  
From: Darren New
Date: 4 Feb 2009 11:58:31
Message: <4989c937$1@news.povray.org>
Mike Raiford wrote:
> Should cause a compiler warning about side effects. (I would think)

It's good side-effects, tho, yes? The complaint is valid in conditionals not 
because of side effects but because it's a constant value in a conditional.
   while (x = getchar()) {...}
doesn't cause a complaint, because getchar() isn't a constant.

-- 
   Darren New, San Diego CA, USA (PST)
   "Ouch ouch ouch!"
   "What's wrong? Noodles too hot?"
   "No, I have Chopstick Tunnel Syndrome."


Post a reply to this message

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