On Sunday, 13 July 2014 at 12:55:30 UTC, sigod wrote:
Something like this would be possible if one could get string representation of a lazy expression:
```
void _logfx(lazy int expr)
{
    DebugLog(expr.stringof); // currently it outputs `expr()`
    fx(expr);
}
```

lazy expressions are in fact delegates so this can't work reliably if there is no access to _logfx source - it has to be template parameter or language spec adjusted to be more demanding :(

Reply via email to