//要点6: Result 可以参与运算, "函数名"不可以
function MyFun(x,y: Integer): Integer;
begin
Result := x + y;
Result := Result * 2;
end;
转载于:https://my.oschina.net/hermer/blog/320258
//要点6: Result 可以参与运算, "函数名"不可以
function MyFun(x,y: Integer): Integer;
begin
Result := x + y;
Result := Result * 2;
end;
转载于:https://my.oschina.net/hermer/blog/320258