Chapter 2. Become a Delphi Language Ninja

In this chapter, we will cover the following recipes:

  • Fun with anonymous methods – using higher-order functions
  • Writing enumerable types
  • RTTI to the rescue – configuring your class at runtime
  • Duck typing using RTTI
  • Creating helpers for your classes
  • Checking strings with regular expressions

Introduction

This chapter explains some of the not-so-obvious features of the language and the RTL that every Delphi programmer should know. There are ready-to-use recipes that will be useful every day and have been selected over many others.

Get Delphi Cookbook now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.