It is currently 12 Sep 2025, 23:32
   
Text Size

Why reset()?

Post MTG Forge Related Programming Questions Here

Moderators: timmermac, Blacksmith, KrazyTheFox, Agetian, friarsol, 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 61 guests

Main Menu

User Menu

Our Partners


Who is online

In total there are 61 users online :: 0 registered, 0 hidden and 61 guests (based on users active over the past 10 minutes)
Most users ever online was 7967 on 09 Sep 2025, 23:08

Users browsing this forum: No registered users and 61 guests

Login Form