Same code in more than one cogs
EMHmark7
Posts: 93
Hi,
In SPIN on Propeller.
If I use a function in several cogs and I declare variables in it of same name in all instances (because same source code),
will it create separate instances of those variables?
I suppose yes, but wanted to make sure.
In fact, I want to copy paste codes that looks alike in 2 different functions but with same local variable names.
Thanks,
Marc
In SPIN on Propeller.
If I use a function in several cogs and I declare variables in it of same name in all instances (because same source code),
will it create separate instances of those variables?
I suppose yes, but wanted to make sure.
In fact, I want to copy paste codes that looks alike in 2 different functions but with same local variable names.
Thanks,
Marc
Comments