www.digitalmars.com         C & C++   DMDScript  

digitalmars.D - Re: The BSD license problem and a trivial solution

 1) Add a handler for "--printLicenses" in extern(C) int main. This ensures the
text can always be printed.
 1.1) Make sure to call checkLicenses beforehand!
 2) Public import addLicense and registerFile in object.d
 3, optional) Extend the module statement so that `module foo under GPLv2; ` is
interpreted as `module foo; static this() { registerFile(__FILE__, "GPLv2"); }`
 4, optional) Extend the above system to track what licenses can import what

The horror! The horror!
May 01 2010