https://issues.dlang.org/show_bug.cgi?id=809
Stewart Gordon <[email protected]> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |REOPENED Resolution|WONTFIX |--- --- Comment #5 from Stewart Gordon <[email protected]> --- (In reply to RazvanN from comment #4) I disagree. If you have a lazy parameter, when you reference it in the function you are saying "evaluate it at this point". Essentially, a lazy parameter is just syntactic sugar for a delegate, so it makes perfect sense to be able to access said delegate. I certainly can't see any reason not to allow the programmer to do this. (I realise you could effectively achieve this with a delegate literal: int delegate() dg_ = { return dg; }; But can D compilers be relied on to optimise this to be the original delegate rather than a wrapper?) Furthermore, individuals shouldn't be marking bugs as WONTFIX just because they personally disagree with them. Let's see what Walter says. --
