View mode: basic / threaded / horizontal-split · Log in · Help
May 01, 2010
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 others.

The horror! The horror!
Top | Discussion index | About this forum | D home