Quantcast WoWInterface - View Single Post - Bug Report: % Symbol
View Single Post
12-06-07, 05:20 PM   #3
Shirik
Blasphemer!
Premium Member
WoWInterface Super Mod
AddOn Author - Click to view addons
Join Date: Mar 2007
Posts: 818
It was probably built with 5.0, which is what WoW started out with. % used to be the upvalue operator, and in 5.0 it didn't exist at all. In 5.1, it became the modulus operator.

Look for a lua/luac.exe in the program folder and see if you can't update it to 5.1.

If all else fails, math.mod() is a valid solution.
__________________
たしかにひとつのじだいがおわるのお
ぼくはこのめでみたよ
だけどつぎがじぶんおばんだってことわ
しりたくなかったんだ
It's my turn next.

Shakespeare liked regexes too!
/(bb|[^b]{2})/
  Reply With Quote