[fpc-pascal] Comparison operator for generics
Michael Van Canneyt
michael at freepascal.org
Tue Sep 12 17:23:54 CEST 2017
On Tue, 12 Sep 2017, Ryan Joseph wrote:
>> On Sep 12, 2017, at 4:46 PM, Maciej Izak <hnb.code at gmail.com> wrote:
>> Please check example at : packages\rtl-generics\examples\tcomparer\tcomparerproject.lpr
> Thanks. What is the & here? TCompare.&String(Left.Name, Right.Name);
> I don’t think I’ve ever seen that before.
It means you use a language keyword as an identifier.
An ugly habit, but unfortunately inherited from Delphi.
Originally intended to be able to create imports of other languages
(think SOAP, COM) it is now of course abused...
More information about the fpc-pascal