function Truth:Boolean;


function Truth:Boolean;
begin
  Result := Truth;
end;

Originally shared by Microsoft Developer

Well that sounds simple enough.

Comments

  1. My favorite remains the index entry in the Delphi Language manual (though it may have originated in the TP manual): Recursion, see Recursion.

    ReplyDelete
  2. David Millington​ did you mean "recursion"?

    ReplyDelete
  3. Thomas Mueller Did you mean "recursion"?

    ReplyDelete
  4. I should reshare this post again... ;)

    ReplyDelete
  5. Btw, I wish the compiler would warn about that (unconditional recursion).

    Who hasn't referenced a property in a getter, by mistake - instead of the field...

    ReplyDelete
  6. Hallvard Vassbotn I'm pretty sure FixInsight warns about that.

    ReplyDelete
  7. David Millington I know it does. Started testing FI now. Quite useful, although it does have some room for improvements - sent examples of false positives to Roman Yankovsky :).

    ReplyDelete

Post a Comment