The BSD license problem and a trivial solution

Bane branimir.milosavljevic at
Sat May 1 10:37:02 PDT 2010

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

The horror! The horror!

More information about the Digitalmars-d mailing list