Sets the name of this, or gives this a guaranteed unique name (if
name
is null
).
This function makes a copy of the provided name, so the caller retains ownership of the name it sent.
this |
a Object |
name |
new name of object |