mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-21 22:49:26 +02:00
The sources of the Free Pascal compiler, RTL, packages and utilities.
See https://www.freepascal.org/ for more info.
![]() via {$modeswitch finalfields} (on by default on the JVM target). The meaning is the same as in Java: a final (class) field can only be set in a (class) constructor of the class it's defined in, and can only be written once there (and *must* be set there). They are currently only supported for external classes since that basically turns them into constants, since for non-external classes we need full dataflow analysis o refactored pdecobj.parse_object_members() a bit in the process to reduce the amount of repetition (which would have been further increased for the support for final fields) o made error message about "wrong use of absolute" for fields etc generic, so it gives a proper error depending on which token was used (it had to be made generic for "final" support, but already was used for other things that were wrongly reported as "absolute" misusages) git-svn-id: branches/jvmbackend@18398 - |
||
---|---|---|
compiler | ||
ide | ||
installer | ||
packages | ||
rtl | ||
tests | ||
utils | ||
.gitattributes | ||
.gitignore | ||
Makefile | ||
Makefile.fpc |