Global Functions
Some minor changes & additions to the environment must be disclosed:
_PVERSION
is the global to check your current version of Pluto._PSOUP
is a global boolean you can access to check linkage with Soup.package.path
is modified to also search for.pluto
files.
if _PVERSION == nil then
print("Plain Lua detected (".._VERSION..")")
else
local soup = ""
if not _PSOUP then
soup = "not "
end
print("Pluto detected (".._PVERSION.."), based on ".._VERSION..", "..soup.."compiled with Soup integration")
end
New Functions
utostring
Same as tostring
, but performs the operation under the en_US.UTF-8
locale. Ensures the same result on all systems.
utonumber
Same as tonumber
, but performs the operation under the en_US.UTF-8
locale. Ensures the same result on all systems.