summaryrefslogtreecommitdiff
path: root/tex/context/base/l-table.lua
diff options
context:
space:
mode:
authorHans Hagen <pragma@wxs.nl>2013-01-27 21:24:00 +0100
committerHans Hagen <pragma@wxs.nl>2013-01-27 21:24:00 +0100
commitfa502d65e5e502ef6a26eeb246267ced520ed139 (patch)
tree01a1ec7a640311bf0af1ae1996675cae04000810 /tex/context/base/l-table.lua
parent33fc570519a96f61b586ade8e4833326caaeaf7a (diff)
downloadcontext-fa502d65e5e502ef6a26eeb246267ced520ed139.tar.gz
beta 2013.01.27 21:24
Diffstat (limited to 'tex/context/base/l-table.lua')
-rw-r--r--tex/context/base/l-table.lua4
1 files changed, 3 insertions, 1 deletions
diff --git a/tex/context/base/l-table.lua b/tex/context/base/l-table.lua
index 8a2a9cad5..8b09518cb 100644
--- a/tex/context/base/l-table.lua
+++ b/tex/context/base/l-table.lua
@@ -967,10 +967,12 @@ function table.print(t,...)
if type(t) ~= "table" then
print(tostring(t))
else
- table.tohandle(print,t,...)
+ serialize(print,t,...)
end
end
+setinspector(function(v) if type(v) == "table" then serialize(print,v,"table") return true end end)
+
-- -- -- obsolete but we keep them for a while and might comment them later -- -- --
-- roughly: copy-loop : unpack : sub == 0.9 : 0.4 : 0.45 (so in critical apps, use unpack)