lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


Hey

On 19 November 2016 at 05:22, Eric Wing <ewmailing@gmail.com> wrote:
I've been interested in moving to Lua 5.3. So I'd love to incorporate
your changes. Lua 5.3 integers removes the need for the LNUM patch I
currently use.

I now have a fairly hacky conversion that appears to pass the TestApp, and AFAICS, runs all of the examples correctly, with the possible exception of the Action 4 button in BlocksExample (which just seems to hang after quite a few block invocations). I've not had a chance to dig into that yet.

I've tried to avoid keeping 5.1 API calls around via #defines where I could, but e.g. {get,set}fenv() are currently being handled with a mixture of #define and some subsequent boilerplate in the getfenv() case. This would be pretty easy to change

There's also something weird going on with my whitespace, annoyingly!

Excluding the diff from replacing Lua 5.1 src with 5.3, the diffstat is pretty reasonable:  15 files changed, 218 insertions(+), 128 deletions(-)

I've pushed up my changes to: https://bitbucket.org/cmsj/luacocoa - happy to get whatever feedback you have :)
 
I have an updated version of my Lua patch (now for 5.3) to make it use
Objective-C exception handling for pcall. Just to get things basically

I'm curious about this part. I didn't pay any attention to it for this first stage. What does it do?

--
Cheers,

Chris