-
Notifications
You must be signed in to change notification settings - Fork 24
Open
Labels
Description
beginner friendly
/**
Always returns a new boolean expression that has the result of evaluating logical (NOT expr1).
@note Always returns a new boolexpr in Lua (v2.0.3.22988 and earlier) even when reusing previous `Condition`/`Filter`.
TODO: What about Jass VM? At least it reuses previously created `Condition`/`Filter`.
@note `boolexpr` extends from `agent` and must be explicitly destroyed with `DestroyBoolExpr` to prevent leaks.
However, most functions from blizzard.j destroy passed boolexpr automatically.
*/
native Not takes boolexpr operand returns boolexpr
In Lua these functions don't reuse the previously existing filter/condition/and/or/not expressions and always create a new object. Please test this in Jass again, by supplying the same function twice and comparing them or their handle IDs.
- Test: And, Or, Not
- Share results here
- Update jassdoc