[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 01:49:47 PDT 2008
http://d.puremagic.com/issues/show_bug.cgi?id=2383
------- Comment #1 from bugzilla at digitalmars.com 2008-10-02 03:49 -------
It's legal because the default parameter value is evaluated in the context
where it appears, and so has access to private values where it appears. I'll
clarify the documentation.
--
More information about the Digitalmars-d-bugs
mailing list