Skip to main content

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.

0votes
0answers
651views

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
0votes
1answer
2kviews

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,525
-1votes
1answer
74views

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
0votes
1answer
771views

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
1vote
1answer
932views

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
11votes
1answer
9kviews

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
2votes
2answers
1kviews

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
2votes
1answer
334views

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
0votes
1answer
352views

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
3votes
2answers
974views

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

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
7votes
2answers
719views

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
78votes
10answers
49kviews

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
3votes
5answers
2kviews

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
5votes
3answers
1kviews

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

153050per page
close