I'm getting an error I don't understand. I am trying to just assign a value to an element of an array in pascal.
function TestingThing() : Integer;
type
IntegerArray = array[0..$effffff] of Integer;
PIntegerArray = ^IntegerArray;
var
I: Integer;
D: PIntegerArray;
begin
for I := 0 to 5 do
D[ I ] := I;
end;
This gives me an error on the line
D[I] := I
Error: Incompatible types: got "LongInt" expected "IntegerArray"
Dis pointer, so you need to dereference itD^[ I ] := I;array[0..$effffff]is a bogus data type. @Anthony does not want to allocate space for and use 251658239 integers, but only six.