OpenDreamProject / OpenDream

A project for running games made in the DM programming language
MIT License
186 stars 100 forks source link

Implement a few easy operator overloads #1808

Closed amylizzle closed 1 week ago

amylizzle commented 1 month ago

I swore I wouldn't do this again, but here we are.

Implements +, -, *,/, and | operator overloads because they were very easy.

I'm gonna do it in small parts this time. Next PR I'll clean up some of DMOpcodeHandler

Cleans up the emitted warning so that it tells you what operator is not implemented ie

Warning OD0000 at Camera.dm:132:18: operator"" overloads are not implemented. They will be defined but never called.