| ??? 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 |
| Topic | Author | Date |
| 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 |



