D archeology

"Luís "Luís
Fri Dec 20 17:42:29 PST 2013


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).


More information about the Digitalmars-d mailing list