What is the use of the "far" keyword in Delphi?
delphi
Solution
Far means nothing in 32-bit versions of Delphi (Delphi 2 and later). It was used in 16-bit programming to indicate segment location.
It's still in the language strictly for backward compatibility with very old legacy code.
From the old Delphi 7 help file, topic "Calling conventions":
"The directives near, far, and export refer to calling conventions in 16-bit Windows programming. They have no effect in 32-bit applications and are maintained for backward compatibility only."
Problem
Without knowing i typed 'far' instead of 'var' by my mistake.I noticed the keyword is bold ,which gives me the thoughts that it's part of Delphi's syntax. Does anyone know anything about "far" keyword?