From: DesdeChaves <desdechaves@gmail.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: can't run external lua library
Date: Thu, 23 Jul 2015 12:55:37 +0100 [thread overview]
Message-ID: <CAPBmU9GA+THHb64M7Gcj4g9VjWyV3dhNRtRcnPvOW3No6=FSFQ@mail.gmail.com> (raw)
In-Reply-To: <CAG5iGsBDjHanFNZQ8GV6qh=MFkp08yDP-TdU3s7Auk9bj28crQ@mail.gmail.com>
[-- Attachment #1.1: Type: text/plain, Size: 1419 bytes --]
Luigi, you saved my day. Thanks a lot. Now all works fine.
2015-07-23 8:30 GMT+01:00 luigi scarso <luigi.scarso@gmail.com>:
>
>
> On Thu, Jul 23, 2015 at 1:37 AM, DesdeChaves <desdechaves@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@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
[-- Attachment #1.2: Type: text/html, Size: 2912 bytes --]
[-- Attachment #2: 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
___________________________________________________________________________________
prev parent reply other threads:[~2015-07-23 11:55 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-07-22 23:37 DesdeChaves
2015-07-23 7:30 ` luigi scarso
2015-07-23 11:55 ` DesdeChaves [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='CAPBmU9GA+THHb64M7Gcj4g9VjWyV3dhNRtRcnPvOW3No6=FSFQ@mail.gmail.com' \
--to=desdechaves@gmail.com \
--cc=ntg-context@ntg.nl \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).