Mathematics operator overloading #1362
Answered
by
LukyGuyLucky
LukyGuyLucky
asked this question in
Q&A
-
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.
Answered by
LukyGuyLucky
Apr 16, 2025
Replies: 2 comments 1 reply
-
The only way is using methods at this time. |
Beta Was this translation helpful? Give feedback.
0 replies
-
0.7.1 will have general arithmetics overloading. The complex type uses it too. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Thanks for letting me know.