[Issue 2887] Wrong line number reported inside string mixin

d-bugmail at puremagic.com d-bugmail at puremagic.com
Fri Apr 24 12:38:15 PDT 2009


http://d.puremagic.com/issues/show_bug.cgi?id=2887





------- Comment #1 from shro8822 at vandals.uidaho.edu  2009-04-24 14:38 -------

What I think it should do is the filename inside a mixin should be (based on
outside values):

__FILE__:__LINE__

and the line number should restart at 1 so that you can get both inside and
outside info even with several levels of mixins

Another option would be to have a __LINES__ macro that is an array of line
numbers for each level of mixins.

__LINES__[$-2] == __LINE__ at mixin()


-- 



More information about the Digitalmars-d-bugs mailing list