Initialize operator overload

Project: Fractions

Unit: DelphiDabbler.Lib.Fractions

Record: TFraction

Applies to: ~>0.2

class operator Initialize(out Dest: TFraction);

Description

This operator overload is conditionally compiled for Delphi 10.4 and later only.

Initialize is called automatically whenever a new TFraction record is created. It sets the values of the Numerator and Denominator properties to 0 and 1 respectively, to correctly represent a zero fraction.

⚠️ When compiled with Delphi version prior to 10.4 the initial values of Numerator and Denominator properties are undefined.

Initialize should never be called explicitly.

See Also