Recent changes Random page
GAMING
Gaming
 
StarCraft Wiki
Super Smash Wiki
Halopedia
Diablo Wiki
FFXIclopedia
Grand Theft Wiki
See more...

Sea.IO.printTable

From WoWWiki

Jump to: navigation, search

This article is a part of the documentation of the Sea function library

Prints the contents of an entire table, marking function pointers and nils. Beware that the pre-release version (as of Dec 1, 2004) seems to have some issues with tables that self-refer. For instance, Sea.IO.printTable(Sea) causes WoW to hang.

Example

MyTable = {
    a = function () return 1+1 end;
    [1] = 3;
    [2] = 5;
    ["A"] = "Hello";
    ["B"] = nil;
    [4] = { 1,2,4,5, n=4};
};
Sea.IO.printTable(MyTable);
Root := { 
   a = { { FunctionPtr* } },
   [1] = 3,
   [2] = 4,
   [4] = {
       n = 4,
       [1] = 1,
       [2] = 2,
       [3] = 4,
       [4] = 5
    }
   ["A"] = "Hello",
   ["B"] = nil
}
Rate this article:
Share this article: