Jump to content

Leaderboard


Popular Content

Showing content with the highest reputation on 04/14/20 in Posts

  1. Agreed, used to be important.. but now that procedure navigation is done with tools like MMX that may no longer be required.
  2. John Kouraklis

    Difference between Pred and -1

    @Mike Torrettinni Hahaha...yes...my bad 😋
  3. Primož Gabrijelčič

    pipeline and visual feedback

    Oh, that was you! Big thanks! For the record - I'm trying to keep the book in sync with the OTL most of the time.
  4. Fr0sT.Brutal

    Difference between Pred and -1

    The coolest thing about for-in is that you can implement it for any custom class or record by implementing an iterator. So, f.ex., you can have `for jsonval in JSONDoc.Values['somearray']`. For-in works for strings as well iterating by chars though I personally haven't used it in such way. And it's a bit slower so for time-critical routines usual `for` still remains actual (though for very super time-critical things pointer increasing could beat `for` anyway)
  5. That's actually one change I made over Easter: The Formatter does no longer insert a blank line between a comment and the procedure it describes. Are there any other experts in GExperts that do this?
  6. Mike Torrettinni

    Difference between Pred and -1

    I only rarely use for-in, perhaps I should try using it more often. I only use it for enums, I never thought you can use it for TList, even though it makes sense. Good thread @John Kouraklis , good ideas coming out of this! 🙂
  7. vfbb

    Difference between Pred and -1

    Pred and Succ best use is when used with enum. LBrushKind := Pred(LBrushKind); replace LBrushKind := TBrushKind(Ord(LBrushKind)-1);
  8. Fr0sT.Brutal

    Align right in Converts Strings

    SQL.Text := 'SELECT * '+ ' FROM ... '+ ' WHERE ...'
×