[NTG-context] can't run external lua library

DesdeChaves desdechaves at gmail.com
Thu Jul 23 13:55:37 CEST 2015


Luigi, you saved my day. Thanks a lot.  Now all works fine.

2015-07-23 8:30 GMT+01:00 luigi scarso <luigi.scarso at gmail.com>:

>
>
> On Thu, Jul 23, 2015 at 1:37 AM, DesdeChaves <desdechaves at gmail.com>
> wrote:
>
>> 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
>>
>>
>
> luatex 0.80.1 (the latest luatex) still uses lua 5.2.4
>
> --
> luigi
>
>
> ___________________________________________________________________________________
> If your question is of interest to others as well, please add an entry to
> the Wiki!
>
> maillist : ntg-context at 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
>
> ___________________________________________________________________________________
>



-- 
Atentamente

DesdeChaves
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.ntg.nl/pipermail/ntg-context/attachments/20150723/c4b00706/attachment.html>


More information about the ntg-context mailing list