FPC New Features 2.4.2
About this page
Below you can find a list of new features introduced since the previous release, along with some background information and examples.
All systems
Language
For-in loop support
- Overview: for-in loops allow for easy iterating over the contents of a container type, as well as over some primitive types (arrays, strings, sets) using a uniform syntax.
- Notes: The basic implementation is Delphi-compatible, but in addition FPC also supports some extra functionality. This functionality is described on the page below.
- More information: for-in loop
Sealed and Abstract classes
- Overview: A sealed class is a class which can not be inherited by other classes. An abstract class normally cannot be instantiated, but for compatibility with Delphi abstract does nothing at the moment.
- Notes: Delphi-compatible.
- More information: https://gitlab.com/freepascal.org/fpc/source/-/blob/main/tests/test/tabstract1.pp
New Features from other versions
From the Free Pascal wiki, page "FPC New Features 2.4.2", as it stood on 2023-05-25 after a change by Alextp, out of the wiki's dump of 2024-05-26. Copyright stays with the author who wrote it, according to the old wiki's Licensing page. If you have concerns about this material, message the admin.