PDA

View Full Version : FPC 2.6.0 released!



marcov
03-01-2012, 08:59 PM
Hello,

first, FPC core wants to wish a happy 2012!

To start the new year with a bang, a new major release
of Free Pascal, version 2.6.0, was uploaded to our FTP servers.

Changes that may break backwards compatibility are documented at:
http://wiki.freepascal.org/User_Changes_2.6.0

For Downloads, please use the FTP server at

ftp://freepascal.stack.nl/pub/fpc/dist/2.6.0/

and sourceforge

https://sourceforge.net/projects/freepascal/files/

as much possible.

Enjoy!

The Free Pascal Compiler Team


Free Pascal Compiler

Version 2.6.0

************************************************** ****************************
What's New in 2.6.0
************************************************** ****************************

Free Pascal 2.6.0 is a new major version of the Free Pascal compiler.

Please also see http://wiki.freepascal.org/User_Changes_2.6.0 for a list
of changes that may affect the behaviour of previously working code, and
how to cope with these changes.

Some highlights are:

Platforms:
* iPhoneSimulator target

Compiler:
* Many new language features:
* Objective-Pascal dialect, supported on all Mac OS X and iOS targets
* constref parameter modifier for "const by reference"
* Pascal boolean types with multiple sizes (boolean16/32/64)
* ISO 7185 language mode (except for I/O). Features amongst others:
* nested procedure variables
* non-local goto's
* Mac Pascal mode improvements
* nested procedure variables
* univ modifier
* Intrinsics
* sar (shift arithmetic right)
* bsf/bsr (bitscan forward/reverse)
* Delphi compatibility mode improvements
* Nested types, class variables and class local constants
* Advanced records syntax (no constructors yet)
* (for..in) Enumerators in records
* Class and record helpers
* Generic records, arrays and procedural types
* Delphi-compatibility of generics improved
* Scoped enumerations
* Custom messages for "deprecated" directive
* Ability to use "&" for escaping keywords
* New ARM code generator features
* ARM VFPv2 and VFPv3 floating point unit support
* Thumb-2 support

Packages:
* Many improvements to the rtl
* Many improvements to the database units (fcl-db)
* Objective-Pascal interfaces to Foundation, AppKit, CoreData and WebCore
* OpenGL headers updated to OpenGL 4.0

Details about these new features can be found at
http://wiki.freepascal.org/FPC_New_Features_2.6.0

See http://bugs.freepascal.org/changelog_page.php for the list of reported
bugs that have been fixed in this release.

code_glitch
03-01-2012, 09:29 PM
Now this looks nice. Although its more work for me: any tests I wanted to do on the APT versions for my article are going to change. Guess I could futureproof and base it around fpc 2.6.0 now though! Excellent news :D

Stoney
03-01-2012, 11:04 PM
I've been using FPC 2.6 since RC1 was available and I absolutely love it. I really hope those who are still using Delphi 7 switch to FPC 2.6.0, as FPC supports more language features than Delphi 7 does.

chronozphere
04-01-2012, 11:23 PM
Awesome! I like the delphi compatible generics very much! Now its way easier to make code more reusable, yet portable without the ugly hacks.

Many kudo's for the FPC-devels :D

User137
05-01-2012, 05:44 AM
Was going to install this but then ended up going straight to SVN 2.7.1 ::)

arthurprs
05-01-2012, 03:19 PM
Great news.
I will give it a try, delphi compatible generics is great.

User137
05-01-2012, 04:31 PM
Well, that can be a little tough call, to drop Delphi 7 compatibility from own code, or my game library... But i can admit vector and matrix math would become easier with operator overloading.

marcov
05-01-2012, 07:36 PM
Note that 2.6.0 branched from trunk in August. If you are big on generics and encounter problems, try 2.7.1