resurrecting Bud and Rebuild

Andrei Alexandrescu (See Website For Email) SeeWebsiteForEmail at erdani.org
Wed Feb 7 14:40:25 PST 2007


Walter Bright wrote:
> It was (correctly) pointed out that textual import breaks Bud and 
> Rebuild. It's also been pointed out that textual import may be an 
> unexpected vector for security problems.
> 
> Both can be resolved by only allowing textual import if a command 
> switch, say, -Jpath, is given. 'path' gives the location of where to 
> look for the file; and the file will be restricted to being under that 
> path. No -Jpath, and textual import won't be allowed.
> 
> For Bud and Rebuild, if there's no -J, they know there are no textual 
> imports, so they work as before. With -J, they always recompile.

I think that's great. Many advanced/powerful language features are 
unusual and may make tools unhappy. A classic is Java's runtime 
reflection, which wreaks havoc with pretty much all static analysis tools.


Andrei



More information about the Digitalmars-d mailing list