Difference between revisions of "FPC New Features 2.4.2"

From Lazarus wiki
Jump to navigationJump to search
(fix dead URL)
 
(6 intermediate revisions by 4 users not shown)
Line 11: Line 11:
 
* '''More information''': [[for-in_loop]]
 
* '''More information''': [[for-in_loop]]
 
====Sealed and Abstract classes====
 
====Sealed and Abstract classes====
* '''Overview''': ''sealed'' class is a class which can not be inherited by other classes. ''abstract'' class can not be instantiated but for compatibility with delphi ''abstract'' do nothing at the moment.
+
* '''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''': The implementation is Delphi-compatible.
+
* '''Notes''': Delphi-compatible.
 +
* '''More information''': https://gitlab.com/freepascal.org/fpc/source/-/blob/main/tests/test/tabstract1.pp
 +
 
 +
== New Features from other versions ==
 +
{{Navbar Lazarus Release Notes}}
 +
 
 +
[[Category:FPC New Features by release]]
 +
[[Category:Release Notes]]

Latest revision as of 17:10, 25 May 2023

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

New Features from other versions