1 - included library libs/cba.lua overrides builtin print function
What steps will reproduce the problem
1. Login to a toon with the addon EquivalencePoints enabled
2. 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 arguments
The 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.
| User | When | Change |
|---|---|---|
| Pericles | Thu, 11 Dec 2008 17:54:16 | Changed assigned to from DonTristan to None |
| Pericles | Thu, 11 Dec 2008 17:54:13 | Changed assigned to from None to DonTristan |
| Pericles | Thu, 11 Dec 2008 17:54:08 | Changed assigned to from DonTristan to None |
| Pericles | Thu, 11 Dec 2008 17:53:59 | Changed assigned to from None to DonTristan |
| LokiCoyote | Mon, 08 Dec 2008 05:23:34 | Create |
Facts
- Last updated on
- 11 Dec 2008
- Reported on
- 08 Dec 2008
- Status
- New - Issue has not had initial review yet.
- Type
- Defect - A shortcoming, fault, or imperfection
- Priority
- Medium - Normal priority.