7 Feb 2011
Updated: 7 Feb 2011
Rating: 4.00/5
Votes: 4
Popularity: 2.41
Licence: CPOL
Views: 9,912
Bookmarked: 2
Downloaded: 0
Usually, gotos are used to clean up resources when exiting a function. I would recommend using the RAII[^] idiom. It also works works well in the presence of exceptions.For C# I would use IDisposable/using. If that's not possible, I'd use a finally clause to clean up.Everything else...
|