Thread
:
Creating static inside loop
View Single Post
Black Rose
Veteran Member
Join Date: Feb 2011
Location: Stockholm, Sweden
06-13-2014 , 20:16 Re: Creating static inside loop
#
5
Let me be more specific. I understand the scope and I know that the memory allocation for a static is not released until the plugin is unloaded. That is not the question.
Is there some kind of function that checks if the memory has been allocated that will run every time i try to create the static inside of the loop? Will this create extra work during runtime at each loop execution that should be avoided?
I'm not using it either way. It will only make things more complicated. Now it's just curiosity.
__________________
http://xyproblem.info/
Black Rose
View Public Profile
Send a private message to Black Rose
Find More Posts by Black Rose