[Issue 2383] default arguments can implicitly access private global variables that are not visible at call site
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Thu Oct 2 03:36:55 PDT 2008
http://d.puremagic.com/issues/show_bug.cgi?id=2383
------- Comment #5 from matti.niemenmaa+dbugzilla at iki.fi 2008-10-02 05:36 -------
Isn't the case just the same as the following? (I wish default args were always
semantically equivalent to this, but oh well...)
private const int abc;
void foo() { foo(abc); }
void foo(int i) {}
That shouldn't require making abc non-private, or?
--
More information about the Digitalmars-d-bugs
mailing list