[fpc-pascal] Initialize/Finalize with count, is it possible?

Michael Van Canneyt michael at freepascal.org
Sat Nov 20 11:37:20 CET 2010



On Sat, 20 Nov 2010, Sven Barth wrote:

> 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)

I don't think it will be rejected.

Michael.



More information about the fpc-pascal mailing list