I have a custom class that I want to copy, but declaring it a Struct is not good for various reasons. My question is, if I make a "copy" in the following way, would I have an entirely new object in which each value (strings, ints, etc) are completely unreferenced to any others? Say:
newObject = Object()
newObject.name = oldObject.name // This is a String
newObject.rank = oldObject.rank // This is an Int
newObject.date = oldObject.date // This is a Date
...
Thanks!