const by default.
Regan Heath
regan at netwin.co.nz
Sat Jul 8 17:20:23 PDT 2006
On Fri, 07 Jul 2006 10:42:41 -0700, Walter Bright
<newshound at digitalmars.com> wrote:
> void bar(C c) { c.m = 3; } // ok
> void foo(in C c) { c.m = 3; } // error
I don't like that you're differentiating between implicit and explicit use
of 'in'.
I assume you're doing this to preserve backward compatibility with
existing D code and/or to avoid having to create/add a mutable keyword?
Regan
More information about the Digitalmars-d
mailing list