Sign in Join
Wiki copytemporary

Far: what changed

Revision 0 to 1. Removed lines have a minus sign; added lines have a plus sign.

Title: Far

OldNewLine
1+Back to [[Reserved words]].
2+
3+The reserved word **far**:
4+
5+- belongs to 16 bit programming (DOS, Windows 3.x);
6+- allows subroutines to be started in memory areas beyond the 64KB limit;
7+- allows DLLs to be jumped to in memory areas beyond the 64KB limit;
8+- became obsolete with 32-bit programming.
9+
10+Examples:
11+
12+``` pascal
13+//procedures
14+procedure subTest; far;
15+begin
16+end;
17+
18+function fHandler: boolean; far;
19+begin
20+ fHandler:= true;
21+end;
22+
23+//types
24+type
25+ PFarChar = ^char; far;
26+
27+//vars
28+var
29+ prcf: Procedure; far;
30+```
31+
32+---
33+*From the Free Pascal wiki, page "Far", as it stood on 2022-10-21 after a change by Alextp, out of the wiki's dump of 2024-05-26. Copyright stays with the author who wrote it, according to the old wiki's [[Licensing]] page. If you have concerns about this material, [message the admin](/wiki-contact).*

Back to history