Web forum is in read-only mode. Login as active registered customer for write access
  Forum Search   New Posts New Posts

NEW: Un-used parameter

 Post Reply Post Reply
Author
Nicholas Ring View Drop Down
New Member
New Member
Avatar

Joined: 09 Sep 2016
Posts: 7
Post Options Post Options   Quote Nicholas Ring Quote  Post ReplyReply Direct Link To This Post Topic: NEW: Un-used parameter
    Posted: 10 Oct 2016 at 3:47am
Example:

function MyMethod(const AName : string; const AAge : integer) : string;
begin
  Result := 'Hello ' + AName;
end;

AAge isn't used, so as an optimisation, AAge could be removed (as there are stack pushing involved)
Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down