[fpc-pascal] Operator overload resolution with arrays

denisgolovan denisgolovan at yandex.ru
Mon Feb 5 13:59:01 CET 2018


> Take the following simple declaration:
> --------
> type
> TTriangleIndex = array[0..2] of Integer;
> TFacetList = specialize TFPGList<TTriangleIndex>;
> 
> operator = (A, B: TTriangleIndex): boolean;
> --------
> This will not work:
> fgl.pp(948,50) Error: Operator is not overloaded: "TTriangleIndex" =
> "TTriangleIndex"

Hi, I believe https://bugs.freepascal.org/view.php?id=27690 is all about it.

-- 
Regards,
Denis Golovan



More information about the fpc-pascal mailing list