function DoSomething(aInteger: integer): string;
begin
if aInteger < 0 then
begin
Exit(‘Negative’);
end;
Result := ‘Positive’;
end;
function DoSomething(aInteger: integer): string;
begin
if aInteger < 0 then
begin
Result := ‘Negative’;
Exit;
end;
Result := ‘Positive’;
end;
http://www.qfly.cn 翻译,
原文参考了:http://blogs.codegear.com/nickhodges/2008/07/22/39079