In a recent thread in the Embarcadero
Discussion Forums, Vedran Vuk posted some questions about object
keyword.
His purpose was to use object instead of class to improve speed and memory
consumption:
I do use classes. I just want to use objects on smaller classes that don't really need initialization or RTTI. Plus, I can directly operate on it like a record with no need for constructors and it can be sealed and has inheritance. Every byte matters in this case.
I have the same requirement sometimes, for example for our framework or for low-level units.The "object" type is deprecated. As was said, it mainly exists for compatibility with old Turbo Pascal. That is why it is not documented very well. It's use is not promoted.
