Mathematics operator overloading #1362
-
|
How can one implement a UDT with mathematic operator overloading or the like,for example,a Complex type with operator+/-/*/\ ... etc supported in c3?Or the language just doesn't support,the only way is to implement by functions/methods? Thanks in advance. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
|
The only way is using methods at this time. |
Beta Was this translation helpful? Give feedback.
-
|
0.7.1 will have general arithmetics overloading. The complex type uses it too. |
Beta Was this translation helpful? Give feedback.
Thanks for letting me know.