In my previous post I announced that the code formatter now supports inline if expressions (aka ternary operators). That was technically true, as long as these expressions were in one line of source code: [delphi] Value := if Condition then TrueValue else FalseValue; [/delphi] But as soon as you tried to split longer expressions into … Continue reading More on inline if expressions
Category: Delphi
GExperts Code Formatter supports the Delphi inline if expression aka “ternary operator”
In Delphi 13 Embarcadero introduced a new syntax construct for inline if expressions which they call "ternary operator". It implements what previously had to be implemented with the overloaded IfThen functions as a native compiler feature. These look like this. [delphi] Variable := if Condition then TrueValue else FalseValue; [/delphi] At the same time they … Continue reading GExperts Code Formatter supports the Delphi inline if expression aka “ternary operator”
Enumerating enum types in Delphi AI answer
Regarding my previous post on Enumerating enum types in Delphi I asked claude.ai: Question: I need a way to iterate over all values of an enum type in Delphi. Something like: [delphi] var e: SomeEnumType; for e in SomeEnum do begin doSomethingWith(e); end; [/delphi] But that doesn't compile. I'd like to avoid programming a for-loop … Continue reading Enumerating enum types in Delphi AI answer
Enumerating enum types in Delphi
One would have thought that enumerating enum types in Delphi would be a no brainer, after all they have it in the name already. But this does not compile: [delphi] var L: TSomeEnumType; begin for L in TSomeEnumType do begin doSomethingWith(L); end; end; [/delphi] So I though I'd just wrap it into a record and … Continue reading Enumerating enum types in Delphi
Fixed memory leak in DUnit’s TextTestRunner
In 2015 somebody reported a memory leak in the console test runner of DUnit which apparently was never fixed. I encountered that leak today and got annoyed enough by it to fix it. Here is the updated file, just in case anybody else is interested. The reason for the memory leak was calling Halt without … Continue reading Fixed memory leak in DUnit’s TextTestRunner
help.gexperts.de will stop working shortly
A year ago I used a special offer to register the domain gexperts.de, which I used only for https://help.gexperts.de. That special offer has now run out and I have decided that it is not worth the money I would now have to pay for it. I will probably add a subdomain under dummzeuch.de as a … Continue reading help.gexperts.de will stop working shortly
dzBdsLauncher 1.0.18 now deletes annoying links in start menu
The Delphi 12 and 13 IDE create a link on the main level of the Windows start menu which starts the 32 bit IDE. This happens every time you start any of the two IDEs and it annoyed the hell out of me. I just updated dzBdsLauncher to optionally delete this link after the IDE … Continue reading dzBdsLauncher 1.0.18 now deletes annoying links in start menu
GExperts 1.3.26 beta for Delphi 13 64 bit IDE
I have just released a GExperts beta version for the 64 bit IDE. To use it If you have not done that yet, download the beta installer for the 32 bit version and install it Download GExperts64_RS13_1.3.26_2025-09-28.zip Extract the files from that archive into your GExperts 13 installation directory Execute the batch file Register-GExperts64-XX130.cmd This … Continue reading GExperts 1.3.26 beta for Delphi 13 64 bit IDE
Delphi 13 packages for tdbf
Packages for Delphi 13 are now available in the tdbf project on SourceForge.
Delphi Known IDE Packages Manager updated to Delphi 13
I updated the KnownIdePackagesManager tool to support Delphi 13.