Questions tagged [pascal]

Pascal is an imperative language from the Wirthian family created in 1969. It was widely used in engineering and teaching in the 1970s and 1980s. It lives on in compilers as Free Pascal and Delphi.

Pascal is an influential imperative and procedural programming language, designed in 1969 and published in 1970 by Niklaus Wirth as a small and efficient language. It was largely (but not exclusively) intended to teach students structured programming and data structuring.

Pascal is a descendant of , but it was implemented on a wide range of architectures, from PDP-11s, IBM PCs, to CDC Cyber and IBM System 370 mainframes. Pascal probably reached critical mass around the time Borland released Turbo Pascal in 1983.

Wirth later developed Modula-2 and Oberon and those languages share much of Pascal's design. Other derivatives include OOP-based Object Pascal (used in Delphi and Lazarus/Free Pascal).

Pascal is a purely procedural language and includes control statements with reserved words such as if, then, else, while, for, and so on. However, Pascal also has many data structuring facilities and other abstractions not included in ALGOL 60 like type definitions, records, pointers, enumerations, and sets.

External Resources

Free Pascal/Delphi Programming Books

2598 questions
10
votes
2 answers

Delphi / Pascal Example for Calling OpenSSL EVP functions

Does anyone have a Delphi / Pascal example for calling the below OpenSSL functions... http://svn.freepascal.org/cgi-bin/viewvc.cgi/trunk/packages/openssl/src/openssl.pas?revision=17634&view=markup I am specifically interested in: procedure…
user1272044
  • 103
  • 1
  • 4
10
votes
4 answers

How can I determine which libraries are used in a Delphi program I don't have the source for?

I have a windows .exe file, but the source code for it is missing. The developer was not responsible and left our company. I think it was a delphi/pascal program. The developer used many libraries but I am not sure which ones. Is there a tool…
sayf
  • 103
  • 1
  • 4
10
votes
3 answers

Building cross-platform Delphi applications

I downloaded Lazarus, but have worked with Embarcadero Delphi IDE too. I have a question about building cross-platform Delphi applications. How can I build them under win32 environment? I read the wiki from Lazarus site, that explains how to do it,…
evilone
  • 22,410
  • 7
  • 80
  • 107
10
votes
5 answers

How to convert a integer to float in Delphi?

How to convert a integer to float in Delphi? E.g int_h:= int_var/1.5* int_var;
Aftershock
  • 5,205
  • 4
  • 51
  • 64
10
votes
9 answers

What is the fastest way to Parse a line in Delphi?

I have a huge file that I must parse line by line. Speed is of the essence. Example of a line: Token-1 Here-is-the-Next-Token Last-Token-on-Line ^ ^ Current Position Position …
lkessler
  • 19,819
  • 36
  • 132
  • 203
10
votes
6 answers

Delphi: What are the advantages of using System.New() instead of a local variable, other than just spare a tiny amount of memory?

Let's go back to the basics. Frankly, I have never used New and Dispose functions before. However, after I read the New() documentation and the included examples on the Embarcadero Technologies's website and the Delphi Basics explanation of New(),…
Astaroth
  • 2,241
  • 18
  • 35
9
votes
3 answers

Tool to change a unit name and all references to it

If I make major changes to a unit I like to change its name to make it clear this is a different version and avoid confusion with other archived versions for example: CSVUtils.PAS becomes CsvUtilsNew.PAS But all references to it from other units…
Hamish_Fernsby
  • 558
  • 1
  • 7
  • 28
9
votes
3 answers

How to make a Digital clock in delphi7?

I am pretty new to delphi , and would like to start with something easy . Could someone please show me an example how to make a Digital clock that will transfer the "time" ( hour , min , sec ) to a label ? Or something like that
Art Kristof
  • 93
  • 1
  • 1
  • 4
9
votes
4 answers

What is a conformant array?

I'm trying to figure out what a conformant array is, but I can't find a good definition anywhere. Can anyone explain what this is and give me a basic example, and what the purpose of them is? Thanks
user949814
9
votes
7 answers

Is using "default" case in a switch statement a good habit?

when I'm using a switch(in Java in this case) I normally use the default case if needed. One of my teachers told me that when he used to program in Pascal, that case didn't exist. He said that if it didn't exist in Pascal it shouldn't be something…
Daniel Higueras
  • 2,404
  • 22
  • 34
9
votes
6 answers

What is the '#" symbol in Pascal?

For example: x := #123; I tried to search around Google but I simply have no idea what this means.
Yana D. Nugraha
  • 5,069
  • 10
  • 45
  • 59
9
votes
4 answers

Repeated setters logic in Delphi

For each setter of a class I have to implement some event logic (OnChanging, OnChanged): procedure TBlock.SetWeightIn(const Value: Double); var OldValue: Double; begin OldValue := FWeightIn; DoOnChanging(OldValue, Value); FWeightIn := Value; …
Tihauan
  • 2,780
  • 2
  • 26
  • 29
8
votes
2 answers

How to inform Free Pascal Compiler to set Locale ID for the compiled application

In Delphi there is an option VersionInfo->Language->Locale ID when viewing project properties. I was wandering how to set such property for a program being compiled under Free Pascal. Any solution is welcome: command line argument or preprocessor…
algorytmus
  • 953
  • 2
  • 9
  • 28
8
votes
3 answers

What is it about the Think Pascal debugger that makes it so legendary?

I have been sharpening the coding knives and getting back into dev. A few years ago, many people mentioned that the Symantec Think Pascal debugger that came on the (classic) Mac was the absolute bee's knees, and that nothing else was like it…
8
votes
1 answer

What pascal compilers can target embedded ARM with no OS?

Looks like available Pascal compilers can only produce binaries for ARM on Linux. Is there established version of compiler/bundle for just bare ARM cpu with zero extra software preinstalled ? To clarify, I am looking for high quality, compact tool…
user215054