<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Jul 22, 2014 at 5:14 AM, Marco van de Voort <span dir="ltr"><<a href="mailto:marcov@stack.nl" target="_blank">marcov@stack.nl</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;padding-left:1ex;border-left-color:rgb(204,204,204);border-left-width:1px;border-left-style:solid"><div>In our previous episode, Gennady Agranov said:<br>
> I am new to FPC, but I do like it - thanks!<br>
><br>
> We are trying to switch from Delphi to FPC, but I am stuck with the<br>
> following issue - in Delphi you can cast "set" to "integer" and get it<br>
> back later - again by casting. In our case it is used for persistence<br>
> purposes.<br>
<br>
</div>Good. And afaik in Delphi mode this works too in FPC? Did you test?<br></blockquote><div><br></div><div>casting integer to set does not compile in FPC - and yes - I use Delphi mode :( </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;padding-left:1ex;border-left-color:rgb(204,204,204);border-left-width:1px;border-left-style:solid">
<div><br>
> And what actually -CPPACKSET=0 does - documentation is not clear - at<br>
> least for me :)<br>
<br>
</div>The $PACKSET directive takes a numeric argument of 1, 2, 4 or 8.<br>
<br></blockquote><div> if you run fpc without parameters you get following:</div><div><br></div><div> -CP<x>=<y> packing settings<br> -CPPACKSET=<y> <y> set allocation: 0, 1 or DEFAULT or NORMAL, 2, 4 and 8<br>
</div><div>I wonder what 0 means - thanks!</div><div><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;padding-left:1ex;border-left-color:rgb(204,204,204);border-left-width:1px;border-left-style:solid">
Not mentioned in the documentation means undefined.<br>
_______________________________________________<br>
fpc-devel maillist - <a href="mailto:fpc-devel@lists.freepascal.org">fpc-devel@lists.freepascal.org</a><br>
<a href="http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel" target="_blank">http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel</a><br>
</blockquote></div><br></div></div>