Operator overloading in Delphi 2009..

5 views
Skip to first unread message

Duncan

unread,
Sep 3, 2009, 11:09:24 AM9/3/09
to
I'd like to see an example of operator overloading in Delphi (2009)...
the following document suggests this is possible since Delphi 7:
http://edn.embarcadero.com/article/34324

However would like to know if the > and < operators can be overloaded,
and if so, how this should be done.

Additionally, the link above suggests that operator overloading can be
done in records, and not classes - however the 'class' keyword is used
- most confusing!

Any help / insight would be greatly appreciated.

Regards, Duncan

Reply all
Reply to author
Forward
0 new messages