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.

Filter by
Sorted by
Tagged with
0 votes
0 answers
360 views

Haskell where clause: is it more than just a matter of taste?

The traditional (Scheme, Pascal) way to structure code is this: declare outer function declare inner function body of inner function body of outer function The where clause in Haskell moves ...
ceving's user avatar
  • 391
0 votes
1 answer
2k views

Differences between deep and shallow bindings for static scoping

I am self-learning Michael L. Scott's Programming Language Pragmatics. The following quote explains how deep binding and shallow binding are different in the presence of static scoping: program ...
Tim's user avatar
  • 5,455
-1 votes
1 answer
72 views

Is it possible to use array values to define variable? [closed]

What i mean is something like: I have 2 array var and type, you can input the name of the variable on the var array and type of variable on the type array(type depend on language used), then i want to ...
Dizz's user avatar
  • 1
0 votes
1 answer
729 views

Records defining a partial memory layout

I'm working on a solution that should work in C++-Builder and Delphi, that's why I use Object Pascal syntax, but I'm not very familiar with it. I try to access a file mapping with a size that is not ...
Wolf's user avatar
  • 640
1 vote
1 answer
859 views

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 ...
sav's user avatar
  • 225
11 votes
1 answer
9k views

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 ...
sav's user avatar
  • 225
2 votes
2 answers
1k views

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 ...
Niccolo M.'s user avatar
2 votes
1 answer
325 views

Where can I find Turbo Pascal dialect description/reference? [closed]

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) ...
The Mask's user avatar
  • 131
0 votes
1 answer
339 views

Trace code pascal [closed]

I haven't worked with Pascal so far, and my problem is understanding the recursive aspects that prm assignment operators and how the final (correct) value is derived. Would someone please explain that ...
mghaffari's user avatar
3 votes
2 answers
892 views

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'...
veryfoolish's user avatar
10 votes
3 answers
12k views

Whatever happened to Pascal? [duplicate]

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's user avatar
7 votes
2 answers
707 views

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, ...
Maksee's user avatar
  • 2,663
78 votes
10 answers
48k views

Why has C prevailed over Pascal? [closed]

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 ...
Konrad Morawski's user avatar
3 votes
5 answers
2k views

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 ...
thoiz_vd's user avatar
  • 131
5 votes
3 answers
1k views

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 ...
Jim McKeeth's user avatar
  • 2,116
2 votes
1 answer
825 views

What was the life span of Quick Pascal? [closed]

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 ...
Jim McKeeth's user avatar
  • 2,116
8 votes
3 answers
986 views

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's user avatar
  • 2,116
1 vote
2 answers
347 views

Was in it Turbo Pascal 4 that Unit were introduced? [closed]

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 ...
Jim McKeeth's user avatar
  • 2,116
18 votes
13 answers
3k views

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 ...
Jim McKeeth's user avatar
  • 2,116
12 votes
2 answers
5k views

Is Oberon really "a better Pascal"? [closed]

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 ...
Maksee's user avatar
  • 2,663