__FILE__ and __LINE__ in case of import expression
Steven Schveighoffer
schveiguy at gmail.com
Sat Aug 22 03:43:10 UTC 2020
On 8/21/20 6:34 PM, Adam D. Ruppe wrote:
> On Friday, 21 August 2020 at 22:12:48 UTC, Steven Schveighoffer wrote:
>> And honestly, if it says the source is "mixin-50, line 1", I think
>> people will get it.
>
> I could probably live with that too, but the status quo is pretty useful
> as-is.
I wonder if the compiler could detect when you are using a string
literal vs. a generated or imported string, and change the behavior
accordingly.
-Steve
More information about the Digitalmars-d-learn
mailing list