I have a Record that maintains X,Y:Integer; and some other items .
I don't want to use the generic := because it will copy all of the record which I don't want.
I tried to implement the := operator so that I can simply assign the X,Y from another record but not the rest of the contents of the source record.
Translated from a C/C++ app, where it obviously does work but FPC isn't allowing me to do the same.
The rest of the operators work ok {+,-,= etc}
So, if I am able to get the "=" to work, why can't I get the ":=" work, too?
I understand to some degree this may not make sense to allow an operator like this since the compiler would simply assign one from the other, but in this case, its only some of it that gets assigned.
Is there a switch that I don't know about?