__FILE__ and __LINE__ in case of import expression

Adam D. Ruppe destructionator at gmail.com
Fri Aug 21 21:56:02 UTC 2020


On Friday, 21 August 2020 at 21:42:21 UTC, Steven Schveighoffer 
wrote:
> While not necessarily a "bug", it's not very useful.

Maybe not in this case, but it is perfectly accurate for cases 
like:

mixin(q{
    some code here
});

Where it will actually line back up to the original file's line 
number perfectly.




More information about the Digitalmars-d-learn mailing list