Optional arguments/parameters
Dicebot via Digitalmars-d
digitalmars-d at puremagic.com
Wed May 28 10:19:33 PDT 2014
On Wednesday, 28 May 2014 at 17:11:09 UTC, Ary Borenszweig wrote:
> But there is a 'this' in that place (it's not a static
> function).
>
> Should I file this as a bug?
I can't find exact place in spec but AFAIK default arguments in D
are evaluated in context of call scope, same as in C. Could have
detected the problem earlier with better error message though.
More information about the Digitalmars-d
mailing list