[fpc-pascal] Initialize/Finalize with count, is it possible?
Sven Barth
pascaldragon at googlemail.com
Sat Nov 20 11:29:08 CET 2010
On 20.11.2010 10:07, Honza wrote:
> 2010/11/20 Max Vlasov<max.vlasov at gmail.com>:
>> FillChar(Section^, Count*ElementSize, 0);
>> Initialize(TNameValueRec(Section^), Count);
>>
>> Is possible for such syntax to be supported? Probably I'm one of those rare
>> developer using it, and maybe because of this I just have to make some patch
>> by myself, suggesting the result to be committed :). Please let me know if
>> it's possible.
>
> Why to patch the language when a for loop can do the same as above?
>
Two words: Delphi compatibility. (I know that some can't hear/read it
anymore ^^)
That said:
@Max: Just report it and if the devs reject it, then you'll need to use
a workaround. (And no, you can't edit the bug report you mentioned,
cause it's already closed, so you need to create a new one)
Regards,
Sven
More information about the fpc-pascal
mailing list