Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Object Pascal vs Delphi?

Tags:

delphi

pascal

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?

like image 595
Tracing Avatar asked Mar 29 '13 08:03

Tracing


People also ask

Is Delphi the same as Pascal?

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.

Is Delphi based on Pascal?

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.

Is Object Pascal still used?

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.

What is Object Pascal used for?

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.


2 Answers

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.

like image 100
David Heffernan Avatar answered Oct 05 '22 02:10

David Heffernan


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.

Evolution and Influence of Pascal

like image 22
Jim McKeeth Avatar answered Oct 05 '22 01:10

Jim McKeeth