Welcome to the new DelphiDabbler Code Library Documentation.

This is a new site that's currently running on alpha code. There are going to be bugs. If you discover any, please report them on the site's issues page (GitHub account required). Thanks.

Warning: Many URLs are going to change. Refer to the README file to discover which library project's documentation has been completed.

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