>>or would it be correct to say that "FoxPro overloads operators by default"?
>
>I think this is correct, if I understand you. VFP is written in C++, which supports operator overloading. So when the Fox Team wrote the VFP language, they overloaded the +,-,/, etc. operators in a way that you have no control over.
Good that means I'm getting it. I thought that would be the more correct of the two.
>
>Does the book you are reading say that C# supports operator overloading?
Yes it does.
Specifically that one of the things C# brings to the table is:
"The C++ ability to overload operators for a custom type, without the complexity (i.e., making sure to "return *this to allow chaining" is not your problem)"
Thanks for all your help.
Aloha,
James
Précédent
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement