[Issue 2660] Change #line to pragma(line)

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sat Feb 21 02:41:48 PST 2009


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





------- Comment #12 from clugdbug at yahoo.com.au  2009-02-21 04:41 -------
Like Thomas, I think the existing #line is already a hack. The whole concept of
#line is not pretty. The fact that the # character used only in this one place
in the language is pretty hard to justify for such a tiny feature, IMHO. As far
as I can tell, any sequence of characters could be used for this purpose.

pragma(line) would be an even worse hack from the compiler-writers point of
view, since it's making two completely different things look the same, but is
it really important to the users to know have a strong visual clue of how this
feature is implemented?


-- 



More information about the Digitalmars-d-bugs mailing list