Whats the difference between Object Pascal and Delphi? Are they the same thing? What are the differences and similarities between them and which one is more useful?
Object Pascal was an object oriented extension of Pascal developed by Apple. The first version of Delphi was evolved from Turbo Pascal. The object oriented features in Turbo Pascal were, rightly, considered not fit for purpose. So Borland developed Delphi 1 and incorporated much of the Apple Object Pascal language.
Delphi uses the Pascal-based programming language Object Pascal created by Anders Hejlsberg for Borland (now IDERA) as the successor to Turbo Pascal. It supports native cross-compilation to many platforms including Windows, Linux, iOS and Android.
Pascal. Developed in the late 1960s, Pascal is an imperative and procedural programming language that was originally designed for teaching programming languages. Today, it's been mostly replaced by C, C++ and Java, but it's still used as an introduction to programming.
Object Pascal is an extension to the programming language Pascal that provides object-oriented programming (OOP) features such as classes and methods. The language was originally developed by Apple Computer as Clascal for the Lisa Workshop development system.
Object Pascal was an object oriented extension of Pascal developed by Apple. The first version of Delphi was evolved from Turbo Pascal. The object oriented features in Turbo Pascal were, rightly, considered not fit for purpose. So Borland developed Delphi 1 and incorporated much of the Apple Object Pascal language. So the language for the Delphi product was originally named Object Pascal.
Apple stopped developing Object Pascal and it was never standardised as had been originally intended. For the release of Delphi 6, Borland chose to rename their language as Delphi.
You ask the question:
What's the difference between Object Pascal and Delphi?
But that's not really too meaningful since the original Object Pascal doesn't really exist in a distinct form any more. Apple abandoned it. The only extant implementations of Object Pascal like languages that are in widespread use are Delphi and the languages that it inspired: FreePascal, Oxygene, DWS, etc.
So a better question would be "What is the difference between Delphi and FreePascal?" Nowadays, Object Pascal is used loosely to refer to this family of related languages.
Object Pascal is an extension to Pascal. There are a number of dialects of Object Pascal, Delphi being one of them. Here is a fairly complete writeup on the History of Pascal. It doesn't include Free Pascal or DWS. Free Pascal is focused on being a open source and cross platform clone of Delphi (I'm sure I've offended a few people with that.)
Each dialect of Object Pascal adds things and implements things a little differently.
So Pascal is a family of languages, with Object Pascal as sub-family, and Delphi a sub-family of Object Pascal.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With