Questions tagged [pascal]

Pascal is a programming language. Its primary purpose when it was launched was to provide a vehicle for teaching programming concepts to beginners. With previous languages, teachers had to spend too much time teaching the language, leaving less time for teaching programming concepts.

Pascal is a programming language, published by Niklaus Wirth in 1970. It was designed to learn to program with an almost literal syntax using structured programming and data structuring. One of its main features is that is a language strongly typed. With time their use exceeded the academic ambit, becoming a tool for creating applications of all kinds.

Progress

The first popular Pascal compiler was Turbo Pascal thanks for its low cost and speed to compile.

With Turbo Pascal version 5.5, Borland added object-oriented to Pascal.

Borland later decided to improve this language extension introduced its Delphi product, designed from the standard Object Pascal.

Compilers

  • GNU Pascal Compiler (GPC), written in C, based on GNU Compiler Collection (GCC). It is distributed under GPL.
  • Free Pascal, written in Pascal is a stable and powerful compiler. It supports many platforms and operating systems. Also distributed freely under the GPL.
  • Turbo Pascal is one of the most popular compilers. Currently, older versions of Turbo Pascal are available for free download from the Borland site.
  • Delphi is a product of Borland. It use the Delphi language, descendant of Pascal to create application for the Windows platform.

IDE

  • Dev-Pascal is a Pascal IDE that was designed in Borland Delphi and which supports Free Pascal and GNU Pascal as back ends.
  • Lazarus is a Delphi-like visual cross-platform IDE for rapid application development (RAD). Based on Free Pascal, Lazarus is available for numerous platforms including Linux, FreeBSD, Mac OS X and Microsoft Windows.

Getting Help

In the Pascal-Programming Page are free lessons, articles and more information about the Pascal language.

Hello World

program HelloWorld;
begin
  Write('Hello world!');
end.
20 questions
77
votes
10 answers

Why has C prevailed over Pascal?

My understanding is that in the 1980s, and perhaps in the 1990s too, Pascal and C were pretty much head-to-head as production languages. Is the ultimate demise of Pascal only due to Borland's neglect of Delphi? Or was there more, such as C being a…
Konrad Morawski
  • 9,721
  • 4
  • 37
  • 58
18
votes
13 answers

What features contributed to the evolution of Pascal?

I am compiling a detailed history of the Pascal language, and there are a few details I am missing. There are so many features today that we take for granted. What features significantly contributed to the evolution of Pascal, and why were they…
Jim McKeeth
  • 2,126
  • 15
  • 30
12
votes
2 answers

Is Oberon really "a better Pascal"?

Reading Niklaus Wirth, one can notice that despite some popularity of Pascal, he is not glad that Oberon (as a "polished" successor of Pascal and Modula) didn't get much popularity. I never did anything in Oberon, but reading the page Oberon For…
Maksee
  • 2,653
  • 1
  • 16
  • 12
10
votes
1 answer

Best practices for implementing MVVM and MVC in delphi Pascal

I'm a Delphi pascal programmer, I use the latest Embarcadero delphi XE, and I would like to take advantage of design patterns such as Model view controller and model view view-model. However, there doesn't seem to be much on the web about the best…
sav
  • 215
  • 2
  • 9
9
votes
3 answers

Whatever happened to Pascal?

In reading this blog post about Photoshop 1.0 I was surprised to learn that it was written in Pascal (Object Pascal to be exact). But you never hear about Pascal anymore. Why is that?
Darrell Brogdon
  • 201
  • 1
  • 2
  • 5
8
votes
3 answers

Is Free Pascal just an open source, multi-platform clone of Turbo Pascal & Delphi?

Does Free Pascal introduce any significant language features over Turbo Pascal & then Delphi, or does it just introduce the Turbo Pascal & Delphi flavors of Pascal to more platforms?
Jim McKeeth
  • 2,126
  • 15
  • 30
7
votes
2 answers

How to call modern Pascal?

Should the developers who creates programs with Delphi, FPC, Lazarus agree with the name of the language? This struck me since every possible variation not only adds confusion for new programmers, also when I write or name each of them, I feel that…
Maksee
  • 2,653
  • 1
  • 16
  • 12
5
votes
3 answers

In what specific ways did Pascal and or Delphi influence Java?

I was reading in the side bar of the Java language wiki page and it says it was influenced by Pascal and Delphi. this isn't the fact anymore, there are no references to Delphi on the entire referenced wiki page as of this edit, probably should…
Jim McKeeth
  • 2,126
  • 15
  • 30
3
votes
2 answers

Subranges in Pascal

I'm reading some Pascal code and everything is pretty straightforward except subranges. In the program I'm reading there's a variable d with the following type declaration:array[0..22] of 0..15; there's then the following procedure: var…
veryfoolish
  • 897
  • 1
  • 6
  • 12
3
votes
6 answers

Functions with side-effects in Delphi/Pascal

What is the proper approach to functions that have side-effects in Delphi/Pascal? For example, I could have a boolean function DeleteFile that returns True if the file was deleted and False otherwise. How do I collect the return value? 1) The very…
thoiz_vd
  • 131
  • 2
  • 6
2
votes
1 answer

What was the life span of Quick Pascal?

Microsoft had a Pascal compiler called Quick Pascal. I've seen some conflicting reports about when it was available. Does anyone know for sure? Did it introduce any new language features over the alternatives, or was it just Microsoft's version?
Jim McKeeth
  • 2,126
  • 15
  • 30
2
votes
2 answers

Why are floats called "real numbers" in some languages?

Some programing languages, notably Pascal, have a type of numbers called "real". However, mathematically speaking, these types aren't real. For them to be "real", these types have to be able to represent any real number. Real numbers like 1/3 and…
Niccolo M.
  • 263
  • 2
  • 7
2
votes
1 answer

Where can I find Turbo Pascal dialect description/reference?

Where can I find Turbo Pascal dialect description/reference? Is it still availiable in some place? I'm looking for the famous Turbo Pascal dialect description/reference(yes, the one from 80s/90s time) but I'm not having luck with google.
The Mask
  • 131
  • 3
1
vote
2 answers

Was in it Turbo Pascal 4 that Unit were introduced?

I was surprised when I heard that Pascal didn't originally have units. If I recall correctly they were introduced in Turbo Pascal 4. Did other pascal version have units prior to that? How long before other Pascal's got units?
Jim McKeeth
  • 2,126
  • 15
  • 30
1
vote
1 answer

Handling Destructors in MVVM

I'm making a Model View View-Model (MVVM) application using Delphi XE6. Since I'm using Pascal rather than C#, I need to manage destruction myself. I'm not sure how to handle form destruction. My Form has an associated FormViewModel. The…
sav
  • 215
  • 2
  • 9
1
2