News for hackers. Stuff that matters.
Re:50 Years of Pascal and Delphi Is in Power by unnouinceput on Saturday April 03, 2021 @03:18PM (#26683875)
Quote: ">> An instance of a class is not the same thing as an object.

> I have no idea what you mean here, sorry.

This explains the issue quite well: https://forum.lazarus.freepascal.org/index.php/topic,43622.m..."

I am not sure how Lazarus implements stuff behind the scene but I can tell you 100% for sure that in Delphi every declared class has TObject as ancestor class, so when you instantiate a class in Delphi, you are creating an object.

Re:50 Years of Pascal and Delphi Is in Power by lelanthran on Sunday April 04, 2021 @10:12AM (#26689528)
> I am not sure how Lazarus implements stuff behind the scene but I can tell you 100% for sure that in Delphi every declared class has TObject as ancestor class, so when you instantiate a class in Delphi, you are creating an object.

Like I said, my experience is quite old (circa 2004 with Delphi), but last I used Delphi, it functioned identically to the way that link for Lazarus said it did.

You could create your own class, then instantiate it, and what you got was different from creating an instance of an object.