ok_operator_test

# Unit ok_operator_test

Description
Uses
Classes, Interfaces, Objects and Records
Functions and Procedures
Types
Constants
Variables

## Description

Operator overloads Delphi and FPC

## Overview

### Classes, Interfaces, Objects and Records

Name | Description
--- | ---
Record `TDelphiRec` | Operator overloads declared within a record (Delphi 2006+)
Class `TMyClass` | In this case, "Operator" is used as a normal Delphi identifier
Record `TMyType` |
Record `TMyType2` |

### Functions and Procedures

`Operator := (C : TMyType2) z : TMyType;`
`Operator + (c: TMyType; c1: TMyType) c2: TMyType;`
`Operator - (c: TMyType; c1: TMyType) c2: TMyType;`
`Operator * (c: TMyType; i: integer) c2: TMyType;`
`Operator / (A, B: TMyType): TMyType;`
`Operator ** (A, B: TMyType): TMyType;`
`operator = (const c, d: TMyType) : boolean;`
`operator < (const c, d: TMyType) : boolean;`
`operator > (const c, d: TMyType) : boolean;`
`operator <= (const c, d: TMyType) : boolean;`
`operator >= (const c, d: TMyType) : boolean;`
`operator or (const c,d:TMyType) : TMyType;`
`operator and (const c,d:TMyType) : TMyType;`
`operator xor (const c,d:TMyType) : TMyType;`

## Description

### Functions and Procedures

`Operator := (C : TMyType2) z : TMyType;`

`Operator + (c: TMyType; c1: TMyType) c2: TMyType;`

`Operator - (c: TMyType; c1: TMyType) c2: TMyType;`

`Operator * (c: TMyType; i: integer) c2: TMyType;`

`Operator / (A, B: TMyType): TMyType;`

`Operator ** (A, B: TMyType): TMyType;`

`operator = (const c, d: TMyType) : boolean;`

`operator < (const c, d: TMyType) : boolean;`

`operator > (const c, d: TMyType) : boolean;`

`operator <= (const c, d: TMyType) : boolean;`

`operator >= (const c, d: TMyType) : boolean;`

`operator or (const c,d:TMyType) : TMyType;`

`operator and (const c,d:TMyType) : TMyType;`

`operator xor (const c,d:TMyType) : TMyType;`