included library libs/cba.lua overrides builtin print function #1


  • New
  • Defect
Open
  • _ForgeUser122462 created this issue Dec 7, 2008

    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.

  • _ForgeUser122462 added the tags New Defect Dec 7, 2008
  • Forge_User_75527174 assigned issue to _ForgeUser266461 Dec 11, 2008
  • Forge_User_75527174 unassigned issue from _ForgeUser266461 Dec 11, 2008
  • Forge_User_75527174 assigned issue to _ForgeUser266461 Dec 11, 2008
  • Forge_User_75527174 unassigned issue from _ForgeUser266461 Dec 11, 2008

To post a comment, please login or register a new account.