Skip to content

Commit

Permalink
Added pre de/increment operators. Fixed post de/increment operators.
Browse files Browse the repository at this point in the history
- [ This commit is part of a larger script engine related update ]
- Suffix ++ and -- operators now behave like in other languages
  (updating the variable *after* its value is returned.)
- Prefix ++ and -- operators are added for parity with other
  scripting/programming languages. They update the variable they're
  applied to *before* returning its value.
- Please note that the implementation of the prefix form of those
  operators (like it happens in most languages) is more efficient than
  the suffix form. '++.@i' is (slightly) faster than '.@i++', or at
  least not slower.
- Fixed some outdated script debug functions.
- Follow-up to c18f438.

Signed-off-by: Haru <haru@dotalux.com>
  • Loading branch information
MishimaHaruna committed Nov 28, 2013
1 parent 83d2d93 commit ac6ae8c
Show file tree
Hide file tree
Showing 2 changed files with 150 additions and 102 deletions.

0 comments on commit ac6ae8c

Please sign in to comment.