m34tcode
2014-03-17 18:11:41
Currently, it seems as 'static' function cause access violations, I wrote this script to test that but it doesn't run either.
The Code I have for a 'static' method:
program new;
function Integer.One() : Integer;
begin
Result := 1;
end;
begin
Writeln(ToStr(Integer.One()));
end.The Code I have for a 'static' method:
Type
Translation = record
x, y : integer;
end;
function Translation.Create(x, y : Integer) : Translation;
begin
Self.X := Y;
Self.y := Y;
end;
var Trans : Translation;
begin
Trans := Translation.Create(0,1);
end;