Den 2014-08-13 13:56 skrev Adriano dos Santos Fernandes såhär: > On 13/08/2014 08:24, Alex Peshkoff wrote: >> Is this syntax Delphi-compatible? >> :-) >> I've wrote that I've used to work with Pascal >25 years ago. For example >> I've used objects cause they are just present in language docs before >> classes. But as long as we do not talk about implementations there is no >> big difference between class and object, may be just small syntax sugar. > In some Free Pascal docs say a object is like a record with can have > methods. I didn't remember something like this from Delphi.
Been a while since I used Delphi, but object was introduced in TurboPascal = Borland Pascal, before Delphi. These are very much like records with methods, but do support virtual methods etc. They can be stack or heap allocated and are not implicitly reference types. In Delphi, the more modern class wass introduced, which is implicitly a reference typa and always heap allocated. Supports properties, among other things that I think object does not. Delphi users will want to use class, not object (which is considered strictly legacy stuff although still supported). Kjell ------------------------------------------------------------------------------ Firebird-Devel mailing list, web interface at https://lists.sourceforge.net/lists/listinfo/firebird-devel