WoW:Saving variables between game sessions: Difference between revisions

m (→‎Designating variables to save: padding outline in IE compat. way)
Line 78: Line 78:
   end
   end
  end
  end
== Things that can't be saved ==
Not all Lua constructs can be saved. For example, inline functions.
    function f()
        data = 1
        local function g()
            -- code block
        end
        return { data, g }
    end
    savedVar = f()  -- will fail to save g


[[Category: HOWTOs|Save Variables Between Game Sessions]]
[[Category: HOWTOs|Save Variables Between Game Sessions]]
Anonymous user