Lazarus
Free Pascal => General => Topic started by: winni on October 17, 2021, 05:41:52 pm
-
Hi!
I am using TBits to implement a Big Set.
Operator overloading works fine - with the exceptiopn of "="
The compiler tells "impossible operator overload" and it is obvious the "=" is used for checking of the same pointer.
But I ask: Are there some tricks or workarounds?
Or am I at the EOS (End OF Syntax) ???
Winni
-
The only way to be able to overload all operators is to use a wrapper record type.
-
Hi!
Nice trick.
Thanx.
Winni