-
-
Notifications
You must be signed in to change notification settings - Fork 6
Open
Description
Some identical code behaves differently between jass & lua. Example:
-2147483648 - 1
jass: 2147483647 [wraps to positive]
lua: -2147483648 [can't go any smaller]
I can patch some things with metatables, for example:
(getmetatable("") or {}).__add = function(...) end
But, integers don't have a metatable, so a much more complicated & ugly workaround is necessary.
Many maps won't ever see these side-effects, but should attempt to detect them & either correct them or warn user.
Jass unit tests for example possible side effects is attached:
jass2luaSideEffects_jass.zip
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels