How can the crash in the minimal example here be explained? And is there a solution to avoid this and make the crash going away "without having to jump through special hoops"? dr. Hans van der Meer
On 6/24/2020 9:00 PM, Hans van der Meer wrote:
How can the crash in the minimal example here be explained? And is there a solution to avoid this and make the crash going away "without having to jump through special hoops"? because \currentdate is a macro thatv does some magic ... it's nor fully expandable
so, lua sees \currentdate == \c as first escaped character coming in and that's invalid (\\currentdate would work) just try print("\come on") in pure lua Hans ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl -----------------------------------------------------------------
\\currentdate Neat solution, worked without a hitch. Now I have to remember this for future use ... dr. Hans van der Meer
On 24 Jun 2020, at 21:10, Hans Hagen
wrote: On 6/24/2020 9:00 PM, Hans van der Meer wrote:
How can the crash in the minimal example here be explained? And is there a solution to avoid this and make the crash going away "without having to jump through special hoops"? because \currentdate is a macro thatv does some magic ... it's nor fully expandable
so, lua sees \currentdate == \c as first escaped character coming in and that's invalid (\\currentdate would work)
just try
print("\come on") in pure lua
Hans
----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl -----------------------------------------------------------------
participants (2)
-
Hans Hagen
-
Hans van der Meer