Skip to content

Instantly share code, notes, and snippets.

@frogonwheels
Created May 11, 2010 22:53
Show Gist options
  • Save frogonwheels/397998 to your computer and use it in GitHub Desktop.
Save frogonwheels/397998 to your computer and use it in GitHub Desktop.
type
TCharArray = array of char;
TMyArray = Array[1..2,1..2] of longint;
PMyArray = ^TMyArray;
const
arone : TMyArray = ((1,2),(2,3));
artwo : TMyArray = ((1,2),(4,5));
arps : array[1..2] of PMyArray = (@arone, @artwo);
function Y() : longint;
var
arp : PMyArray;
i : longint;
begin
arp := arps[1];
i := arp^[1][1];
exit(i);
end;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment