Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

The directive #pragma, why it is called as such? [closed]

Tags:

c++

The directive #pragma, is it an abbreviation? If, then it is stand for what and why it is called as such?

like image 689
Aan Avatar asked Oct 29 '11 07:10

Aan


1 Answers

Pragmatic modules, or pragmata, for short, or pragmas, for shorter affect the compilation of your program.

It is called this way because the compiler needs to treat it pragmatically.

Pragmas were introduced in the Ada 83 in 1983, and were reused in many computer languages since (C, perl, ECMAScript, PL/SQL...)

The naming rationale appears in the document "Rationale for the Design of the Ada® Programming Language".

The term pragmatism is derived from the Greek word pragma - πράγμα, meaning action, from which the words ‘practice’ and ‘practical’ come.

The Pragmatism movement was introduced into philosophy by Mr. Charles Peirce in 1878, and named "Pragmatism" by William James in 1898.

like image 154
Lior Kogan Avatar answered Oct 13 '22 13:10

Lior Kogan