Re: [NTG-context] nil from TeX to Lua

2021-08-10 Thread Hans Hagen via ntg-context
On 8/10/2021 9:23 AM, Taco Hoekwater via ntg-context wrote: On 9 Aug 2021, at 22:05, Aditya Mahajan via ntg-context wrote: On Mon, 9 Aug 2021, Hans van der Meer via ntg-context wrote: In the TeX to Lua interface with \def\Macro#1{\directlua{luafunction("#1")}} the transfer from TeX to L

Re: [NTG-context] nil from TeX to Lua

2021-08-10 Thread Taco Hoekwater via ntg-context
> On 9 Aug 2021, at 22:05, Aditya Mahajan via ntg-context > wrote: > > On Mon, 9 Aug 2021, Hans van der Meer via ntg-context wrote: > >> In the TeX to Lua interface with >> >> \def\Macro#1{\directlua{luafunction("#1")}} >> >> the transfer from TeX to Lua is by string. However what to do at

Re: [NTG-context] nil from TeX to Lua

2021-08-09 Thread Aditya Mahajan via ntg-context
On Mon, 9 Aug 2021, Hans van der Meer via ntg-context wrote: > In the TeX to Lua interface with > > \def\Macro#1{\directlua{luafunction("#1")}} > > the transfer from TeX to Lua is by string. However what to do at the Lua end > when calling \Macro{}? > As I understand it, then on the Lua side an

[NTG-context] nil from TeX to Lua

2021-08-09 Thread Hans van der Meer via ntg-context
In the TeX to Lua interface with \def\Macro#1{\directlua{luafunction("#1")}} the transfer from TeX to Lua is by string. However what to do at the Lua end when calling \Macro{}? As I understand it, then on the Lua side an empty argument and an empty string are indistinguishable. This is not alwa