[NTG-context] can't run external lua library
DesdeChaves
desdechaves at gmail.com
Thu Jul 23 01:37:10 CEST 2015
I'm trying to reuse a old library to generate poisson numbers. In old
context versions the library works fine, but in the current beta (ConTeXt
ver: 2015.07.16 13:30 MKIV beta fmt: 2015.7.23 int: english/english) the
execution fails.
This code works perfectly in lua 5.3 but not in luatex. why?
\startluacode
require "meurandist"
ARRAY_SIZE=3
arr=meurandist.new_int(ARRAY_SIZE)
meurandist.rpoisson(arr,ARRAY_SIZE,4)
for i=0,ARRAY_SIZE-1 do
print(meurandist.int_getitem(arr,i))
end
\stopluacode
Thanks a lot
Jorge
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.ntg.nl/pipermail/ntg-context/attachments/20150723/ee4389dc/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: test_—_bash_—_164×35.png
Type: image/png
Size: 64823 bytes
Desc: not available
URL: <http://www.ntg.nl/pipermail/ntg-context/attachments/20150723/ee4389dc/attachment-0002.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: test_—_lua_—_164×35.png
Type: image/png
Size: 28909 bytes
Desc: not available
URL: <http://www.ntg.nl/pipermail/ntg-context/attachments/20150723/ee4389dc/attachment-0003.png>
More information about the ntg-context
mailing list