Hi all,
Anyone having an idea when Lazarus is to be released with FPC 2.3.1 for i386 Mac OSX?
Thanks,
Normann

Mailing lists / fpc-pascal / 2008-02
7 messages · 4 people · –
Reply by email Subscribe to this list Your subscription
Read-only archive. Use j and k to move between messages.
Hi all,
Anyone having an idea when Lazarus is to be released with FPC 2.3.1 for i386 Mac OSX?
Thanks,
Normann
Bent Normann Olsen wroteHi all, Anyone having an idea when Lazarus is to be released with FPC 2.3.1 for i386 Mac OSX?
There won't be Lazarus releases with FPC 2.3.1, because FPC 2.3.1 is not a release, but a development snapshot. FPC 2.3.1 will become FPC 2.4.0, when it will be released.
The next Lazarus release after the FPC 2.4.0 release, will be released for FPC 2.4.0.
Before FPC 2.4.0 is released, I expect at least a FPC 2.2.2 and possibly a FPC 2.2.4 (and 2.2.6). So I personally don't expect FPC 2.4.0 in 2008 and chances are not too high for 2009 either.
Vincent
Thanks for the reply,
I was especially interested in the 2.3.1 fix in the sizes for enumerated types. Small enumerated types in FPC 2.2.0 has the size of 4 bytes, and 1 byte in Delphi. Sizes of small enumerated types in FPC 2.3.1 is 1 byte after the fix. I understand, that "set of" types has the size of 4 bytes or 32 bytes, and probably will be this way for the future releases of FPC.
This is to keep compatibility for written records and record sizes in files in mind. A workaround is of course to use byte and type casting instead.
Is there any chances this fix in 2.3.1 will be available in 2.2.x versions of FPC?
Normann
You can make them 1 byte in FPC 2.2.0 by using {$packenum 1}. It's possible that {$packenum 1} has become the default in Delphi mode in 2.3.1, I don't know.
I understand, that "set of" types has the size of 4 bytes or 32 bytes, and probably will be this way for the future releases of FPC.
Delphi-compatible set packing is already available FPC 2.2.1. Storing sets in a binary file is a very bad idea though, because they are opaque types and you cannot rely in any way on their internal format. They're also incompatible between little and big endian systems.
Jonas
I was especially interested in the 2.3.1 fix in the sizes for enumerated types. Small…
Use the compiler command line option -CPPACKSET=1 or source directive {$PACKSET 1} for Delphi compatibility in Set sizes. This works in 2.3.1 and 2.2.0.
I use too {$Z1} or {$PACKENUM 1} for Delphi compatibility in enumerated sizes. Curiously, and sadly, these options are not automatically attributed in Delphi mode.
You can make them 1 byte in FPC 2.2.0 by using {$packenum 1}. It's possible that…
Jonas,
Thanks for the reply.
I tested this on FPC 2.2.0 for i386 Mac and it worked just as you described.
This is only a workaround for files already stored from a current version of an application, and future versions will not behave this way ;-)
Thanks again,
Normann
Use the compiler command line option -CPPACKSET=1 or source directive {$PACKSET 1} for…
Wanderlan Santos dos Anjos wroteUse the compiler command line option -CPPACKSET=1 or source directive {$PACKSET 1} for Delphi compatibility in Set sizes. This works in 2.3.1 and 2.2.0.
It contains several bugs in 2.2.0 though and it's not advisable to use it there.
Jonas