Hans Hagen wrote:
Heiko Oberdiek wrote:
Hello,
I have some trouble to insert something at the start of a list.
weird message indeed; this works
The message (and even the error itself) is accidental, but there is a deeper problem indeed. There are two different possible approaches: 1. make the lua user responsible for nodelist consistency 2. prevent the lua user from doing stupid things, giving as much help as possible (including garbage collection) The current code is almost completely using approach 1, because that is fastest both in development time and runnning time, approach 2 is (in the end) more user-friendly. In this particluar case, the error is simply an oversight: the insert_before should have worked, with all the mentioned caveats. Best wishes, Taco