Using Object instead of Class generates compiler error
Posted on 2001-07-19
To prevent me from having all the methods of the TObject class while having almost all the advantages of a class, I started to use the Object keyword (to replace Class). Everything worked fine until I started to use them with indexed properties. Doing so forced me to do something like : Result (Object) := MyObject. The problem is that it generates a compiler error with delphi 5 (ex.: error #12345 You should not receive this message...contact Borland...blablabla).
The help files says that Object is supported only for backward compatibility.
Any clue on why it was leaved, what replaced it and how I can make this work?