This site works best with JavaScript enabled. Please enable JavaScript to get the best experience from this site.
What steps will reproduce the problem1. Login to a toon with the addon EquivalencePoints enabled2. Enter the following slash command "/script print()3. Error occurs in EquivalencePoints/libs/cba.lua
What is the expected output? What do you see instead?
A non-library addon should not override a global function...The global function does not produce an error on empty argumentsThe global function does not prepend the word "Output:" to the output text.
What version of the product are you using?
2.2.1
Do you have an error log of what happened?
[2008/12/08 05:11:05-165-x1]: EquivalencePoints-2.2.1.$Revision: 55 $\libs\cba.lua:76: bad argument #1 to 'print' (value expected)EquivalencePoints-2.2.1.$Revision: 55 $\libs\cba.lua:76: in function `print'<string>:"print(GetItemInfo("test"))":1: in main chunk<in C code>: in function `RunScript'Interface\FrameXML\ChatFrame.lua:1708: in function `?':Interface\FrameXML\ChatFrame.lua:3191: in function `ChatEdit_ParseText':Interface\FrameXML\ChatFrame.lua:2911: in function `ChatEdit_SendText':Interface\FrameXML\ChatFrame.lua:2932: in function `ChatEdit_OnEnterPressed':<string>:"*:OnEnterPressed":1: in function <[string "*:OnEnterPressed"]:1>---
Please provide any additional information below.
Is this library even needed since 3.0.2 now includes a print function?
The library (cba.lua) doesn't indicate in comments why it needs to create a new global print function.
To post a comment, please login or register a new account.