Old 06-18-2018, 02:56 AM   #1
X-Raym
Human being with feelings
 
X-Raym's Avatar
 
Join Date: Apr 2013
Location: France
Posts: 9,875
Default Lua 5.3.4 ?

Hi, just curious,


Is REAPER Lua 5.3 or 5.3.4 (last version from january 2017) ?
printing _VERSION shows 5.3 only, so does the cockos website on reascript page.
X-Raym is offline   Reply With Quote
Old 06-18-2018, 03:23 AM   #2
Xenakios
Human being with feelings
 
Xenakios's Avatar
 
Join Date: Feb 2007
Location: Oulu, Finland
Posts: 8,062
Default

It looks like there is no way in Lua to query the exact version, so Cockos will have to answer that.
__________________
I am no longer part of the REAPER community. Please don't contact me with any REAPER-related issues.
Xenakios is offline   Reply With Quote
Old 06-18-2018, 03:47 AM   #3
snooks
Banned
 
Join Date: Sep 2015
Posts: 1,650
Default

It looks like it's 5.3.3 because this bug from 5.3.3 ( http://www.lua.org/bugs.html#5.3.3 ) is fixed in 5.3.4 but hangs Reaper...
Code:
-- the next loop will probably crash the interpreter
repeat until load "for _ in _,_,_,_ do local function _() end"
... and this bug report from 5.3.2...
Code:
do
  local k = 0
  local x
  ::foo::
  local y       -- should be reset to nil after goto, but it is not
  assert(not y)
  y = true
  k = k + 1
  if k < 2 then goto foo end
end
... is fixed. So it's either 5.3.3 or some combination of patches that makes it smell like that.
snooks is offline   Reply With Quote
Old 06-18-2018, 04:38 AM   #4
X-Raym
Human being with feelings
 
X-Raym's Avatar
 
Join Date: Apr 2013
Location: France
Posts: 9,875
Default

@snooks
Nice way to find the answer !



So so I guess we can officially request for Lua 5.3.4 in REAPER :P
X-Raym is offline   Reply With Quote
Old 06-18-2018, 04:54 AM   #5
Xenakios
Human being with feelings
 
Xenakios's Avatar
 
Join Date: Feb 2007
Location: Oulu, Finland
Posts: 8,062
Default

Quote:
Originally Posted by X-Raym View Post
So so I guess we can officially request for Lua 5.3.4 in REAPER :P
Or 5.4.0 because it's already available as a preview...
__________________
I am no longer part of the REAPER community. Please don't contact me with any REAPER-related issues.
Xenakios is offline   Reply With Quote
Old 06-18-2018, 04:17 PM   #6
Lokasenna
Human being with feelings
 
Lokasenna's Avatar
 
Join Date: Sep 2008
Location: Calgary, AB, Canada
Posts: 6,551
Default

Quote:
Originally Posted by Xenakios View Post
Or 5.4.0 because it's already available as a preview...
Changes include:
Code:
debug information about function arguments and returns
That would be fun.
__________________
I'm no longer using Reaper or working on scripts for it. Sorry. :(
Default 5.0 Nitpicky Edition / GUI library for Lua scripts / Theory Helper / Radial Menu / Donate
Lokasenna is offline   Reply With Quote
Old 06-19-2018, 09:28 AM   #7
Meo-Ada Mespotine
Human being with feelings
 
Meo-Ada Mespotine's Avatar
 
Join Date: May 2017
Location: Leipzig
Posts: 6,621
Default

Wohoo...debugging information is always good
Meo-Ada Mespotine is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -7. The time now is 05:25 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.