summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKhaled Hosny <khaledhosny@eglug.org>2011-10-04 01:47:49 +0200
committerKhaled Hosny <khaledhosny@eglug.org>2011-10-04 02:10:49 +0200
commit6871fef86f6ec11946c7c1a814b194313de07850 (patch)
tree5cef1712c350a5f75fbbcf284b87d9312061e37d
parent11daf48daa80703990105bd37ffcf339586120ea (diff)
downloadluaotfload-6871fef86f6ec11946c7c1a814b194313de07850.tar.gz
One more step to get it working
-rw-r--r--luaotfload.dtx8
1 files changed, 8 insertions, 0 deletions
diff --git a/luaotfload.dtx b/luaotfload.dtx
index 24e82c3..6cf553c 100644
--- a/luaotfload.dtx
+++ b/luaotfload.dtx
@@ -511,6 +511,14 @@ function table.reversed(t)
return tt
end
end
+
+function table.derive(parent)
+ local child = { }
+ if parent then
+ setmetatable(child,{ __index = parent })
+ end
+ return child
+end
% \end{macrocode}
%
% \subsection{Module loading}