Extend the call site default argument expansion mechanism?

Seb seb at wilzba.ch
Thu May 10 14:30:49 UTC 2018


On Thursday, 10 May 2018 at 14:15:18 UTC, Yuxuan Shui wrote:
> So in D I can use default argument like this:
>
> int f(int line=__LINE__) {}
>
> [...]

Why not define a TLS or global variable like theAllocator?
Or if you know it at compile-time as an alias?


More information about the Digitalmars-d mailing list