OpenDream
OpenDream copied to clipboard
Operator overloading is unimplemented
When attempting to compile /vg/station, the following error occurs:
Error at code\__HELPERS\math\vector\vector.dm:73:24: Expected end of object statement
the relevant lines:
73 /vector/proc/operator+(var/vector/B)
74 return new /vector(x + B.x, y + B.y)
It seems that operator overloading isn't implemented.
Fixed by #1196, though they now throw unimplemented warnings instead as they can be defined but will never be called.
I would still consider that unimplemented
@amylizzle What was the main reason that #944 couldn't be merged?
Mostly because the way procs worked was refactored and I didn't want to fix the merge, but also the general approach I'd taken didn't allow for some of the operators to actually work, notably the index operators.
Thanks for explaining.
Closing in favor of https://github.com/OpenDreamProject/OpenDream/issues/1854 which is tracking the status of each operator overload.