[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: debug.getlocal from within return hook
- From: Dirk Laurie <dirk.laurie@...>
- Date: Wed, 20 May 2015 08:36:14 +0200
2015-05-20 8:17 GMT+02:00 Philipp Janda <firstname.lastname@example.org>:
> I'd like to avoid parsing Lua files of possibly different Lua versions and
> patching their source code.
One could argue that by definition a program with debug hooks in it
is still under development, and changes to its source code are still
to be expected.
What I have learnt from this thread is "return hooks give undefined
results when an expression rather than a variable is being returned".
I think I'll patch it into my local copy of $LUA/doc/manual.html.