ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* can't run external lua library
@ 2015-07-22 23:37 DesdeChaves
  2015-07-23  7:30 ` luigi scarso
  0 siblings, 1 reply; 3+ messages in thread
From: DesdeChaves @ 2015-07-22 23:37 UTC (permalink / raw)
  To: mailing list for ConTeXt users


[-- Attachment #1.1: Type: text/plain, Size: 527 bytes --]

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

[-- Attachment #1.2: Type: text/html, Size: 910 bytes --]

[-- Attachment #2: test_—_bash_—_164×35.png --]
[-- Type: image/png, Size: 64823 bytes --]

[-- Attachment #3: test_—_lua_—_164×35.png --]
[-- Type: image/png, Size: 28909 bytes --]

[-- Attachment #4: Type: text/plain, Size: 485 bytes --]

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2015-07-23 11:55 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-07-22 23:37 can't run external lua library DesdeChaves
2015-07-23  7:30 ` luigi scarso
2015-07-23 11:55   ` DesdeChaves

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).