rob_cole_2221866's profile

4.5K Messages

 • 

76.3K Points

Sat, Jan 19, 2013 5:52 AM

Closed

Lightroom: SDK 5 should support Lua 5.2

Lua 5.1 has been great, but Lua 5.2 is better.

I would love to see the simpler function environments (which extend to called functions, unlike LrFunctionContext.callWithEnvironment, which is dang near useless), and built-in bit-ops would allow decent sha1 support - just ask Jeffrey Friedl about that.

etc...

Thanks for considering.

Rob

Champion

 • 

704 Messages

 • 

8.5K Points

9 y ago

As someone who works on an enterprise Lua-driven app, it's pretty normal for the app to trail releases by a fair amount.

5.1 is save, well-understood, and stable. Ever has it been so.

4.5K Messages

 • 

76.3K Points

Aren't you defending Adobe a little pre-maturely John? - they haven't even not done it yet ;-}.

4.5K Messages

 • 

76.3K Points

9 y ago

I don't really expect Adobe to upgrade Lua come Lr5, but still: I hope they do...

4.5K Messages

 • 

76.3K Points

8 y ago

I was wrong about LrFunctionContext.callWithEnvironment - it's quite useful. I misunderstood this part of the documentation:

"Variables declared in the scope of the calling function are NOT automatically passed through to the inner function. In particular, imported namespaces and classes do not carry through."

What it means (I think) is that the entire environment for the called function (and all functions it calls) comes from the passed environment - the environment of the calling function is invisible in the called function. I shan't try to explain what I previously thought it meant - you're welcome.

Rob