function TForm1.rf: boolean;
begin
Exit(true);
//等价于 Exit(true) result:=true; Exit(false) result:=false;
end;
function TForm1.rf1: integer;
begin
Exit(4);
//等价于 result:=4;
end;
function TForm1.rf2: string;
begin
Exit('aa');
//等价于 result:='aa';
end;