Now, as far as I can tell, calling obj.method
or method(obj)
seems to give the same results. However, when I tried to see how subsref
behaves in these cases, I came to the startling realization that method(obj)
doesn't seem to go through the subsref mechanism. So how are these calls then handled and is there a practical way to override them?
I'm trying to do this, so I can make something like method(object).otherMethod
possible (which I would obviously be handling through a custom subsref
). Any ideas?