Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-pascal / 2008-02

Lazarus with FPC 2.3.1 i386 Mac OSX

7 messages · 4 people · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Bent Normann Olsen

Hi all,

Anyone having an idea when Lazarus is to be released with FPC 2.3.1 for i386 Mac OSX?

Thanks,
Normann

Vincent Snijders
to Bent Normann Olsen
Bent Normann Olsen wrote
Hi 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

Bent Normann Olsen
to Vincent Snijders

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

Earlier message 30 lines
-----Original Message----- From: On Behalf Of Vincent Snijders Sent: 5. februar 2008 12:16 To: FPC-Pascal users discussions Subject: Re: [fpc-pascal] Lazarus with FPC 2.3.1 i386 Mac OSX Bent Normann Olsen schreef: > Hi 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
Jonas Maebe
to Bent Normann Olsen
Bent Normann Olsen wrote 9 lines
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.

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

Wanderlan Santos dos Anjos
to Bent Normann Olsen: 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.

Att, Wanderlan Santos dos Anjos
Bent Normann Olsen
to Jonas Maebe: 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

Earlier message 34 lines
-----Original Message----- From: On Behalf Of Jonas Maebe Sent: 5. februar 2008 13:36 To: FPC-Pascal users discussions Subject: Re: [fpc-pascal] Lazarus with FPC 2.3.1 i386 Mac OSX On 05 Feb 2008, at 13:24, Bent Normann Olsen wrote: > 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. 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