On Saturday, 21 December 2013 at 01:33:53 UTC, H. S. Teoh wrote:
Has DMD always had -J for string imports? 'cos if not, I'd be fearful of somebody using string imports to view the contents of arbitrary files.

        string x = import("/etc/passwd");
        pragma(msg, x);
        // or trigger a compile error that generates a message
        // containing the contents of x.

I'm not passing -J to DMD, so I can't see how that would work. Also, I'm not returning to the server any output from DMD, other than the return code (success / failure).

Reply via email to