Is there any software licence (GNU, MIT Apache etc.) that could be readily used or modified to allow to impose limitations of the specific use/modification of parts of a source code that otherwise is being distributed as open source?
Specifically, for example, in a collaboratively developed software package (like scientific software) one person implements a new (and yet unpublished) algorithm but wants to limit its use/modification (or publication ;-)) by others that also have access to the code. Can this be achieved by a software licence?
Or could parts of the code (that need extra protection of that kind) be accompanied by copyright notices that limit the free use/modification of the open source software as a whole?