Email: Password: Remember Me | Create Account (Free)

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
03/08/01 00:52
Read: times


 
#9851 - RE: Explain advantages of using static func.
Erik,
Yes, that's right: static locals do exist for the whole duration, but other locals don't.

The advantage in static locals (over globals), again, is that it reduces the number of places where the value could be altered - possibly unexpectedly.

The advantage in non-static ("auto") locals is that it both reduces the number of places where the value could be altered and gives the possibility of memory-space re-use


List of 11 messages in thread
TopicAuthorDate
Explain advantages of using static func.            01/01/70 00:00      
RE: Explain advantages of using static func.            01/01/70 00:00      
RE: Explain advantages of using static func.            01/01/70 00:00      
RE: Explain advantages of using static func.            01/01/70 00:00      
RE: Explain advantages of using static func.            01/01/70 00:00      
RE: Explain advantages of using static func.            01/01/70 00:00      
RE: Explain advantages of using static func.            01/01/70 00:00      
RE: Explain advantages of using static func.            01/01/70 00:00      
RE: Explain advantages of using static func.            01/01/70 00:00      
RE: Explain advantages of using static func.            01/01/70 00:00      
Thank you!            01/01/70 00:00      

Back to Subject List