On Friday, 2 November 2012 at 12:04:28 UTC, Regan Heath wrote:
Should I raise a bug for this?
This one is ok I think because D normally lets locals shadow globals silently - if you had
int g;
void main() {
int g;
}
that's ok normally so it isn't specific to with. This is a good
thing because it means adding a variable elsewhere won't
annoyingly break your functions.
You could argue that doing it on structs is a little harder to keep track of than regular locals, but, meh.
