[fpc-devel] RFC: customvariant handling in variants.pp and fmtbcd.pp
LacaK
lacak at zoznam.sk
Fri Apr 15 08:31:32 CEST 2011
>> Could I ask why is there needed VarDataInit ? (only for my interest ;-))
>>
> A good question. Formally it is not needed, but in general
> initializing variables before use remains a good idea. Here the
> TVarData is passed to VarDataCastTo, and after initializing we can be
> sure that VarDataCastTo won't find garbage in remaining 4 bytes of
> structure if it accesses them for whatever reason.
>
Thanks for explain
Laco.
More information about the fpc-devel
mailing list