It is currently 07 Jul 2021, 23:43
   
Text Size

Why reset()?

Post MTG Forge Related Programming Questions Here

Moderators: timmermac, friarsol, Blacksmith, KrazyTheFox, Agetian, CCGHQ Admins

Why reset()?

Postby Max mtg » 21 Aug 2011, 13:53

I've seen a lot of times reset() method being used instead of just disposing an object and acquiring a new one.
Why is that? Is that a project-wide policy? Do I have to .reset() things in my new code too?
Single class for single responsibility.
Max mtg
Programmer
 
Posts: 1997
Joined: 02 Jul 2011, 14:26
Has thanked: 173 times
Been thanked: 334 times

Return to Developer's Corner

Who is online

Users browsing this forum: No registered users and 8 guests


Who is online

In total there are 8 users online :: 0 registered, 0 hidden and 8 guests (based on users active over the past 10 minutes)
Most users ever online was 1922 on 07 Jun 2021, 06:01

Users browsing this forum: No registered users and 8 guests

Login Form