POV-Ray : Newsgroups : povray.off-topic : C# 4.0 Default parameters : Re: C# 4.0 Default parameters Server Time
6 Sep 2024 07:17:01 EDT (-0400)
  Re: C# 4.0 Default parameters  
From: Mike Raiford
Date: 4 Feb 2009 11:35:29
Message: <4989c3d1$1@news.povray.org>
Darren New wrote:

> 
> Errr, they are? No. A C++ thing, but not a C thing.
> 

Oh. For some reason I thought they were introduced in C.

> 
> I think he screwed it up, is what I'm saying.
> 

Heh. Probably.

> list.Search(address="home")
> assigns "home" to address, then passes it to list.Search()
> 
> I wonder how often that's going to bite someone. :-) Lots, I expect.
> 

Should cause a compiler warning about side effects. (I would think)

-- 
~Mike


Post a reply to this message

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