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: 5,003
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: 7,270
Default

It looks like there is no way in Lua to query the exact version, so Cockos will have to answer that.
__________________
For info on SWS Reaper extension plugin (including Xenakios' previous extension/actions) :
http://www.sws-extension.org/
https://github.com/Jeff0S/sws
--
Xenakios blog (about HourGlass, Paul(X)Stretch and λ) :
http://xenakios.wordpress.com/
Xenakios is offline   Reply With Quote
Old 06-18-2018, 03:47 AM   #3
snooks
Human being with feelings
 
Join Date: Sep 2015
Posts: 1,546
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: 5,003
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: 7,270
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...
__________________
For info on SWS Reaper extension plugin (including Xenakios' previous extension/actions) :
http://www.sws-extension.org/
https://github.com/Jeff0S/sws
--
Xenakios blog (about HourGlass, Paul(X)Stretch and λ) :
http://xenakios.wordpress.com/
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: The vast, frozen wasteland of western Canadia.
Posts: 5,379
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.
__________________
Currently working away from home; don't expect timely responses from me.
Default 5.0 Nitpicky Edition / GUI tutorial for Lua / GUI library for Lua scripts / Theory Helper / Radial Menu / Donate / ReaPack
Lokasenna is offline   Reply With Quote
Old 06-19-2018, 09:28 AM   #7
mespotine
Human being with feelings
 
Join Date: May 2017
Posts: 384
Default

Wohoo...debugging information is always good
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 08:51 PM.


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