Revision 1 of 1, by Alextp on 10-21-2022. The page as it is now.
Far
Back to Reserved words.
The reserved word far:
- belongs to 16 bit programming (DOS, Windows 3.x);
- allows subroutines to be started in memory areas beyond the 64KB limit;
- allows DLLs to be jumped to in memory areas beyond the 64KB limit;
- became obsolete with 32-bit programming.
Examples:
//procedures
procedure subTest; far;
begin
end;
function fHandler: boolean; far;
begin
fHandler:= true;
end;
//types
type
PFarChar = ^char; far;
//vars
var
prcf: Procedure; far;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.
