Jump to content

  • Log In with Google      Sign In   
  • Create Account


#Actualtheark

Posted 02 September 2012 - 05:23 PM

What you did wasn't incorrect, its just bad practice effectively. As its already been pointed out, if I was to use your class, I would not expect when it went out of scope/or I deleted it, that it would save a game file. My port of call is to create classes as if they are intended to be used by someone else, unless of course, those classes will never be used by someone else. If that makes any lick of sense .... hmm.

#1theark

Posted 02 September 2012 - 04:02 PM

What you did wasn't incorrect, its just bad practice effectively. As its already been pointed out, if I was to use your class, I would expect when it went out of scope/or I deleted it, that it would save a game file. My port of call is to create classes as if they are intended to be used by someone else, unless of course, those classes will never be used by someone else. If that makes any lick of sense .... hmm.

PARTNERS