I was just wondering when you said that the object name is set to the function name, of you would have a class of object names.

But I think that a change of function name should probably also change the object name, to reduce the possible confusion and the first glance of ‘this program is buggy’ which you indicated it is not.