Originally posted by Pradeep Bhat:
Ernest,
Why is not implemented as a real field?
Well, it could be, I suppose, but at the time they were adding it, old class files wouldn't have it, and new ones would, and so obviously that would be a mess. It was presumably easier to do it this way. Is there something you don't like about the way it's done?
This reminds me of the "length" pseudo-member in arrays, which I personally detest -- why wasn't it defined to be a method instead?