WoW:USERAPI GetReturnValues: Difference between revisions

no edit summary
(Note: efficiency questioned)
No edit summary
Line 44: Line 44:


  function {{PAGENAME}}(order, ...)
  function {{PAGENAME}}(order, ...)
     local input = {}
     local input = {...}
    for i = 1, select('#', ...) do
        input[i] = select(i, ...);
    end
     local output = {}
     local output = {}
     order = tostring(order);
     order = tostring(order);
Line 62: Line 59:
  local {{PAGENAME}}_Out;
  local {{PAGENAME}}_Out;
  function {{PAGENAME}}(order, ...)
  function {{PAGENAME}}(order, ...)
     {{PAGENAME}}_In = {}
     {{PAGENAME}}_In = {...}
    for i = 1, select('#', ...) do
        {{PAGENAME}}_In[i] = select(i, ...);
    end
     {{PAGENAME}}_Out = {}
     {{PAGENAME}}_Out = {}
     order = tostring(order);
     order = tostring(order);
Anonymous user