summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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}