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 ap
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?
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 lu
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: /home/sam/context-
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 true,
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 us
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 (
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 lit
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 ( name, "r" ))
if f then
f:close ()