const by default.
Sean Kelly
sean at f4.ca
Mon Jul 3 12:25:21 PDT 2006
BCS wrote:
>
> The issue as to the mutability of local variables is another thing all
> together. I haven't heard any agreement on what is best here. One
> thought I like is local reference type variables are localy mutable.
> However if you are passing them to a function they become implicitly
> immutable unless you say otherwise.
I was thinking along the same lines. There really isn't much of an
advantage to making local variables immutable.
Sean
More information about the Digitalmars-d
mailing list