On Wednesday, 28 May 2025 at 11:32:53 UTC, Jonathan M Davis wrote:
On Wednesday, May 28, 2025 5:04:06 AM Mountain Daylight Time realhet via Digitalmars-d-learn wrote:
Yes, most of the time I can put __FILE__ and __LINE__ onto a runtime function parameter.

But this time it is a requirement:
I must write the __FILE__ and __LINE__ with pragma(msg, ...)

Update: I can only avoid !() when I'm in the same module. When importing that function, into another module, there will be an implicit alias and it will lock onto a single __FILE__ __LINE__ location inside the imported module.



Reply via email to