[fpc-pascal] open arrays as parameters (why packed not allowed)?

Jonas Maebe jonas.maebe at elis.ugent.be
Fri Oct 16 10:36:59 CEST 2009


On 15 Oct 2009, at 16:30, Bruce Bauman wrote:

> From: fpc-pascal-bounces at lists.freepascal.org
> [mailto:fpc-pascal-bounces at lists.freepascal.org] On Behalf Of Jonas
> Maebe
> Sent: Thursday, October 15, 2009 10:28 AM
> On 15 Oct 2009, at 14:49, Bruce Bauman wrote:
>
>> [packed for open array parameters]
>>> Is there a reason why "packed" is not allowed in this context?
>>
>> I think it's simply because I forgot to add it when adding support  
>> for
>> packed arrays. Please file a bug report.
>>
> Thanks. Will do.

Sorry, I misread the mail, I thought it was about bitpacked arrays.  
Plain "packed" arrays are no different from regular arrays in FPC (we  
basically ignore that modifier, except in MacPas mode where it's an  
alias for bitpacked), so the "packed" monicker can simply be left out  
when declaring the open array parameter.


Jonas



More information about the fpc-pascal mailing list