What's missing to make D2 feature complete?
via Digitalmars-d
digitalmars-d at puremagic.com
Wed Dec 24 01:32:05 PST 2014
On Wednesday, 24 December 2014 at 09:02:56 UTC, Kagamin wrote:
> If you require another variable for a sanitized version of `n`,
> you get confused, when to use `n` and when to use `x`, they are
Btw, this is case where preventing shadowing becomes an issue, as
you could have solved this easily using immutable shadowing:
func(immutable int n){
@trustmeiwantoshadowthis immutable n = sanitize(n);
...
}
More information about the Digitalmars-d
mailing list