string file = __FILE__ considered harmful (and solution)
Walter Bright
newshound2 at digitalmars.com
Fri Jun 1 03:14:11 UTC 2018
On 5/30/2018 2:45 PM, John Colvin wrote:
> https://run.dlang.io/is/oMe7KQ
>
> Less elegant, but solves the problem of accidental argument adding (CallerFile
> acts as a barrier). Unfortunately, while it works in theory, in practice the
> compiler crashes.... LOL
Please post bug reports when you find compiler crashes. Thanks!
More information about the Digitalmars-d
mailing list