Skip to content

Instantly share code, notes, and snippets.

@targi
Created March 16, 2014 20:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save targi/9589409 to your computer and use it in GitHub Desktop.
Save targi/9589409 to your computer and use it in GitHub Desktop.
Пример работы с указателем на что угодно (Turbo Pascal).
program PointerTest;
type
IntPtr = ^integer;
var
src, dst : integer;
intp : IntPtr;
p : Pointer;
begin
src := 42;
dst := 0;
new(intp);
intp^ := src;
p := intp;
dst := IntPtr(p)^;
writeln(dst);
end.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment