Skip to main content

Questions tagged [pascal]

For questions regarding the use or installation of the Pascal language on retrocomputers.

99 votes
1 answer
30k views

Why did MS-DOS applications built using Turbo Pascal fail to start with a division by zero error on faster systems?

On faster MS-DOS systems, it wasn't entirely uncommon for applications built using Borland's Turbo Pascal to fail to start, and (before exiting back to the command prompt) to report a division by zero ...
user's user avatar
  • 5,336
39 votes
4 answers
13k views

Where does this esoteric Pascal operator come from?

In the documentation for an implementation of Pascal for a Soviet computer, I've encountered a very weird language extension. I'll try to translate it: Branching operator (branch) Syntax &...
Leo B.'s user avatar
  • 19.4k
37 votes
3 answers
6k views

What was the point of Apple Pascal having its own file system?

Apple's UCSD Pascal for the Apple II used its own file system rather than the existing DOS 3.3 of the day. I'm not sure if it overlapped SOS at all, but regardless of timelines it seems that the ...
bjb's user avatar
  • 16.4k
34 votes
5 answers
8k views

Why was nil defined as a reserved word in Pascal?

In Pascal, nil (the pointer value to "nothing") is a reserved word. Why wasn't it simply a predefined identifier as true and false are, for example? This is stated in PASCAL User Manual and Report p....
JeanPierre's user avatar
32 votes
3 answers
8k views

Was Dennis Ritchie being too modest in this quote about C and Pascal?

In his 1993 conference proceeding The Development of the C Language, Dennis Ritchie stated Successors C and even B have several direct descendants, though they do not rival Pascal in ...
DrSheldon's user avatar
  • 16.5k
23 votes
6 answers
4k views

How can I reverse-engineer the game Wizardry (1981) for PC, based on UCSD Pascal?

I am looking at the files included with the 1981 game Wizardry. The particular version I have is from a 1998 re-release, but I do not know if the binary is still the original 1981 release. My ...
typedeaf's user avatar
  • 333
22 votes
6 answers
5k views

What caused the downfall of Pascal? [closed]

From 1985 to 1990 Borland's Turbo Pascal was at least as popular as C for DOS systems. Turbo Pascal was especially popular because of it's ground breaking BGI graphics interface while C was stalled in ...
jwzumwalt's user avatar
  • 4,499
21 votes
8 answers
7k views

Did Pascal programmers really move on to Java in the 90s?

According to this video Pascal suffered great loss of percentage in the 90s. There is, contrary to the common belief that C prevailed over Pascal, a counterargument that Pascal programmers moved on to ...
Schezuk's user avatar
  • 3,754
21 votes
2 answers
4k views

Who invented small string optimization?

In the source code of the 1972 Pascal compiler (a very large OCR-ed PDF), there are declarations of variables and record fields of type ALFA, which are "packed arrays" of 10 characters. ...
Leo B.'s user avatar
  • 19.4k
17 votes
4 answers
4k views

Why does Pascal have numeric labels?

Pascal was intended, in part, to be a simple language to implement. Some of the design decisions reflecting this are Declarations/definitions must be given in a strict order (labels, constants, types,...
texdr.aft's user avatar
  • 3,627
17 votes
3 answers
2k views

x86 as a Pascal Machine?

From this answer by gsg about the usage of certain x86 instructions: Note that the x86 was originally designed as a Pascal machine, which is why there are instructions to support nested functions (...
Evan Carroll's user avatar
  • 3,388
14 votes
5 answers
2k views

Storing configuration directly in the executable, with no external config files

Back in the days when dinos talked fluently English, Arabic, Spanish and a bunch of other languages, when one could change tapes of a PDP-11 on the fly there was a programming language Turbo Pascal. I ...
HermDP's user avatar
  • 383
11 votes
1 answer
640 views

How much time and how many people were required to develop Delphi version 1?

I would guess the compiler was primarily a modification of Borland's Turbo Pascal, while the Integrated Development Environment and Visual Component Library required a lot more development from ...
joe's user avatar
  • 111
9 votes
1 answer
2k views

Is this a bug or an allowed Pascal behavior?

Consider the following Pascal program: 1 1 PROGRAM MAIN(OUTPUT); VAR F:TEXT; I:INTEGER; 2 2 BEGIN 3 2 REWRITE(F); 4 3 FOR I := 10 TO 30 DO BEGIN 5 3 WRITELN( I, ’...
Leo B.'s user avatar
  • 19.4k
9 votes
2 answers
393 views

How did UCSD Pascal exception mechanism work?

In the UCSD PASCAL II.0 Manual, there is a description (document page 140, PDF page 153) of a peculiar language feature: instead of non-local GOTO statements, as in the Wirth's Pascal, there is ...
Leo B.'s user avatar
  • 19.4k

15 30 50 per page