I'm having some trouble with the syntax of Delphi.
I have a record:
type
TMyType = record
....
end;
and a procedure:
procedure Foo(bar:Integer);
var
ptr : ^TMyType
begin
ptr := bar //how to do this?
end;
How do I properly cast an integer to a pointer of TMyType?