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.
20 questions
0
votes
0
answers
727
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 ...
0
votes
1
answer
3k
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 ...
-1
votes
1
answer
100
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 ...
0
votes
1
answer
816
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 ...
1
vote
1
answer
963
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 ...
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 ...
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 ...
2
votes
1
answer
357
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) ...
0
votes
1
answer
373
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 ...
3
votes
2
answers
1k
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
...
10
votes
3
answers
13k
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?
7
votes
2
answers
769
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, ...
79
votes
10
answers
50k
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 ...
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 ...
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 ...
2
votes
1
answer
864
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 ...
8
votes
3
answers
1k
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?
2
votes
2
answers
395
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 ...
18
votes
13
answers
4k
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 ...
13
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 ...