[fpc-pascal] Generic type parameter variable initialization
Florian Klämpfl
florian at freepascal.org
Thu Jan 5 15:03:50 CET 2012
Am 05.01.2012 14:19, schrieb Sven Barth:
>> procedure TMyClass<T>.SomeMethod;
>> var
>> V: T;
>> begin
>> ...
>> Finalize(V);
>> FillChar(V, SizeOf(V), 0);
>> ...
>> end;
>>
>> which is equivalent but it doesn't look too elegant. I am using FPC
>> 2.7.1 for Win32/64.
>
> For now you'll need to use this workaround solution.
Has the workaround really the same effect? I really wonder why there is
a need for default then ...
More information about the fpc-pascal
mailing list