Kistjes: Your version is good as long as you never want to set and save the old value in one hit.
For example:
It is very handy when you want to save a value temporarily and put it back the way it was later. Colour is a good example.
Also, the "unused" string is only unused if you never get the value. In which case it's pointless using this method which is by definition a GetSet.
For example:
local oldvalue = myType.name( "newvalue" ) print oldvalue
It is very handy when you want to save a value temporarily and put it back the way it was later. Colour is a good example.
Also, the "unused" string is only unused if you never get the value. In which case it's pointless using this method which is by definition a GetSet.