new DIP2: Const code bloat

Steven Schveighoffer schveiguy at yahoo.com
Thu Jul 9 10:36:39 PDT 2009


On Thu, 09 Jul 2009 09:46:50 -0400, Kagamin <spam at here.lot> wrote:

> DiP2 is here. Check it.
>
> http://www.prowiki.org/wiki4d/wiki.cgi?DiPs
> http://www.prowiki.org/wiki4d/wiki.cgi?DiP2
>
> ps code markup is not very nice.

Thanks for that!

I updated the DiP to identify one other important problem that the  
solution solves: specifying that a function will not alter a parameter  
*during* the function but allows modification of the parameter through the  
return value (if the passed in value is mutable, of course).

Please update if what I wrote is too confusing, it's hard to word  
properly...

-Steve



More information about the Digitalmars-d mailing list