News for hackers. Stuff that matters.
Re:Is the preprocessor still needed in C++? (2017) by mhh__ on Sunday December 06, 2020 @08:55AM (#25323456)
The idea is to get the location of the caller without using a macro.

D just uses __LINE__, because it hasn't got a preprocessor so the compiler can resolve the token properly.

The implementation of that is at https://github.com/dlang/dmd/blob/v2.094.2/src/dmd/expressio...

There are no comments on this comment yet.