summaryrefslogtreecommitdiff
path: root/tex/context/base/meta-fun.lua
diff options
context:
space:
mode:
Diffstat (limited to 'tex/context/base/meta-fun.lua')
-rw-r--r--tex/context/base/meta-fun.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/tex/context/base/meta-fun.lua b/tex/context/base/meta-fun.lua
index 7594d0c78..78ee25baf 100644
--- a/tex/context/base/meta-fun.lua
+++ b/tex/context/base/meta-fun.lua
@@ -8,7 +8,7 @@ if not modules then modules = { } end modules ['meta-fun'] = {
-- very experimental, actually a joke ... see metafun manual for usage
-local format, loadstring, type = string.format, loadstring, type
+local format, load, type = string.format, load, type
local metapost = metapost
@@ -39,7 +39,7 @@ function metafun.interpolate(f,b,e,s,c)
local done = false
context("(")
for i=b,e,(e-b)/s do
- local d = loadstring(format("return function(x) return %s end",f))
+ local d = load(format("return function(x) return %s end",f))
if d then
d = d()
if done then