Re: [NTG-context] \ctxlua and \startluacode ... \stopluacode

2019-10-16 Thread Rudolf Bahr
On Tue, Oct 15, 2019 at 10:15:34AM +0200, Hans Hagen wrote: > On 10/15/2019 10:04 AM, Taco Hoekwater wrote: > > Hi Rudolf, > > > > > On 15 Oct 2019, at 00:50, Rudolf Bahr wrote: > > > > > > Now to your suggestion not to use "assert ()". Indeed it's a solution! My > > > program > > > works! I

Re: [NTG-context] \ctxlua and \startluacode ... \stopluacode

2019-10-15 Thread Hans Hagen
On 10/15/2019 10:04 AM, Taco Hoekwater wrote: Hi Rudolf, On 15 Oct 2019, at 00:50, Rudolf Bahr wrote: Now to your suggestion not to use "assert ()". Indeed it's a solution! My program works! I append again its output (again just for fun!). Did you really try it or has it been just an idea?

Re: [NTG-context] \ctxlua and \startluacode ... \stopluacode

2019-10-15 Thread Taco Hoekwater
Hi Rudolf, > On 15 Oct 2019, at 00:50, Rudolf Bahr wrote: > > Now to your suggestion not to use "assert ()". Indeed it's a solution! My > program > works! I append again its output (again just for fun!). Did you really try it > or > has it been just an idea? First, let me say that embedded

Re: [NTG-context] \ctxlua and \startluacode ... \stopluacode

2019-10-14 Thread Rudolf Bahr
On Mon, Oct 14, 2019 at 09:26:58PM +0200, Taco Hoekwater wrote: > Hi, > > > On 14 Oct 2019, at 21:08, Rudolf Bahr wrote: > > > > > > 2. But in the case of an not existing file (BBB.lua) the known error > > message comes up > > again: > > "token call, execute: [ctxlua]:8:

Re: [NTG-context] \ctxlua and \startluacode ... \stopluacode

2019-10-14 Thread Taco Hoekwater
Hi, > On 14 Oct 2019, at 21:08, Rudolf Bahr wrote: > > > 2. But in the case of an not existing file (BBB.lua) the known error message > comes up > again: > "token call, execute: [ctxlua]:8: /home/sam/context-tests/BBB.lua: No such > file or >directory". >This, of course, is

Re: [NTG-context] \ctxlua and \startluacode ... \stopluacode

2019-10-14 Thread Rudolf Bahr
On Mon, Oct 14, 2019 at 07:19:53PM +0200, Hans Hagen wrote: > On 10/14/2019 6:50 PM, Rudolf Bahr wrote: > > THis MWE must be faulty, but where is the error? > > > > > > > > \startluacode > > > > userdata = userdata or {} > > > > function

Re: [NTG-context] \ctxlua and \startluacode ... \stopluacode

2019-10-14 Thread Hans Hagen
On 10/14/2019 6:50 PM, Rudolf Bahr wrote: Dear List! THis MWE must be faulty, but where is the error? \startluacode userdata = userdata or {} function userdata.file_exists (name) local name = name local f= assert ( io.open (

Re: [NTG-context] \ctxlua and \startluacode ... \stopluacode

2019-10-14 Thread Taco Hoekwater
Hi, > On 14 Oct 2019, at 18:51, Rudolf Bahr wrote: > >  > Dear List! > > THis MWE must be faulty, but where is the error? > > === > \lookupfile{"$HOME/context-tests/AAA.lua"}% "AAA.lua" intentionally does > exist $HOME is an actual