eugeny gladkih
unread,Nov 11, 2025, 12:04:56 PM (18 hours ago) Nov 11Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to lu...@googlegroups.com
re,
will the compiler remove unused a local variable and a string in the code like that?
local function get_locations()
local PXY_ETC_DIR<const> = '/opt/pxy/etc’
local PXY_HOME_ROOT<const> = '/opt/pxy’
local PXY_RUN_DIR<const> = '/run’
local PXY_VAR_ROOT<const> = '/var/opt/pxy'
return PXY_HOME_ROOT..'/', PXY_ETC_DIR..'/', PXY_VAR_ROOT..'/'
end
‘PXY_RUN_DIR’ is not used here at all.
--
Yours sincerely, Eugeny.