diff options
author | Hans Hagen <pragma@wxs.nl> | 2007-08-20 10:21:00 +0200 |
---|---|---|
committer | Hans Hagen <pragma@wxs.nl> | 2007-08-20 10:21:00 +0200 |
commit | deecfe09c774d4c2835f6999b2cdd9ca07e9bdae (patch) | |
tree | c921185fc4f848363c7d2ebf48a24e575c8194fe /tex/context/base/char-ini.lua | |
parent | 14fbfde2ad32d2fe4a831aa9007877e5cb5764be (diff) | |
download | context-deecfe09c774d4c2835f6999b2cdd9ca07e9bdae.tar.gz |
stable 2007.08.20 10:21
Diffstat (limited to 'tex/context/base/char-ini.lua')
-rw-r--r-- | tex/context/base/char-ini.lua | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/tex/context/base/char-ini.lua b/tex/context/base/char-ini.lua index 0daa91c0d..d7a2044a2 100644 --- a/tex/context/base/char-ini.lua +++ b/tex/context/base/char-ini.lua @@ -23,10 +23,15 @@ characters = characters or { } characters.data = characters.data or { } characters.context = characters.context or { } -_empty_table_ = { } -_empty_table_.__index = function(t,k) return "" end +do + local _empty_table_ = { __index = function(t,k) return "" end } -setmetatable(characters.data,_empty_table_) + function table.set_empty_metatable(t) + setmetatable(t,_empty_table_) + end +end + +table.set_empty_metatable(characters.data) --[[ldx-- <p>At this point we assume that the big data table is loaded. From this |