On Tue, 12 Sep 2017, Ryan Joseph wrote:


On Sep 12, 2017, at 4:46 PM, Maciej Izak <hnb.c...@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...

Michael.
_______________________________________________
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Reply via email to