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

d-bugmail at puremagic.com d-bugmail at puremagic.com
Mon Feb 16 17:27:05 PST 2009


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





------- Comment #6 from wbaxter at gmail.com  2009-02-16 19:27 -------
(In reply to comment #5)
> I'll admit it is not public domain, but I have a tool for translating c# into D
> that uses #line all over the place and a tool that takes a file with #line
> directives and finds lines that assume a given file name/line number

Can't you just spend like 2 seconds changing that to look for pragma(line..)
instead of #line?

> I guess my point is that #line is a bit of a standard and I see no point in
> breaking from it. Even getting another operator is a bit of a hard sell as the
> only uses for # I known of are out-of-band annotations (C's usage and bash like
> comments) so I would be hesitant to give it any other use.
> 

I think here, too, removal of #line should be conditioned upon some agreement
about what to do with it once it's free.


-- 



More information about the Digitalmars-d-bugs mailing list