@stevedice@Adanisi when you writing code in any project, you have copyright on your own code. Nothing prevents you reusing your code with other (even closed source) form until you sign some additional agreement. Yes, you cannot change license of other’s code and keep mixed code non-GPL, so you might be need to keep your code in separate file with permissive GPL compatible license to prevent mixing with GPL code.
Even if you keep your code in a separate file, if you link to GPL code, according to the FSF, your code should be GPL. The law says otherwise but they would still sue you.
@stevedice @Adanisi when you writing code in any project, you have copyright on your own code. Nothing prevents you reusing your code with other (even closed source) form until you sign some additional agreement. Yes, you cannot change license of other’s code and keep mixed code non-GPL, so you might be need to keep your code in separate file with permissive GPL compatible license to prevent mixing with GPL code.
Even if you keep your code in a separate file, if you link to GPL code, according to the FSF, your code should be GPL. The law says otherwise but they would still sue you.