OpenDream icon indicating copy to clipboard operation
OpenDream copied to clipboard

Constant evaluation for native functions is not implemented

Open martinlyra opened this issue 2 years ago • 0 comments

https://github.com/OpenDreamProject/OpenDream/blob/1b80c46ef2ffcabcd4e6cea0cffe52ac65fbc0b1/DMCompiler/DM/DMExpression.cs#L51-L55

Should be implemented for ProcCall

Besides the compiler has a superficial understanding of knowing and handling what global procs are native and which are not. This need to be improved and extended upon.

Associated test file: https://github.com/OpenDreamProject/OpenDream/blob/1b80c46ef2ffcabcd4e6cea0cffe52ac65fbc0b1/Content.Tests/DMProject/Broken%20Tests/Const/ConstProc.dm#L1-L6

martinlyra avatar Jun 18 '23 20:06 martinlyra