[fpc-devel] How to convert set to integer and vice versa
gennadyagranov at gmail.com
Tue Jul 22 17:23:31 CEST 2014
On Tue, Jul 22, 2014 at 5:14 AM, Marco van de Voort <marcov at stack.nl> wrote:
> In our previous episode, Gennady Agranov said:
> > I am new to FPC, but I do like it - thanks!
> > We are trying to switch from Delphi to FPC, but I am stuck with the
> > following issue - in Delphi you can cast "set" to "integer" and get it
> > back later - again by casting. In our case it is used for persistence
> > purposes.
> Good. And afaik in Delphi mode this works too in FPC? Did you test?
casting integer to set does not compile in FPC - and yes - I use Delphi
> > And what actually -CPPACKSET=0 does - documentation is not clear - at
> > least for me :)
> The $PACKSET directive takes a numeric argument of 1, 2, 4 or 8.
> if you run fpc without parameters you get following:
-CP<x>=<y> packing settings
-CPPACKSET=<y> <y> set allocation: 0, 1 or DEFAULT or NORMAL, 2, 4
I wonder what 0 means - thanks!
Not mentioned in the documentation means undefined.
> fpc-devel maillist - fpc-devel at lists.freepascal.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the fpc-devel