currently os.version returns "CraftOS <version>" as a string. I think it would be nice if we were able to get just the number portion of this. It would make checking os compatibility a breeze.
if os.getVersion() < 1.4 then
print("Sorry this program is only for CC1.4+")
end
Now I know there are ways to check like checking existence of term.clear and wrapping a modem and checking if a function exists, etc... I also know its possible to do this
local ver = os.version()
if tonumber(ver:sub(#ver - 3, #ver)) < 1.4 then
print("Sorry this program is only for CC1.4+")
end
But again, I feel it would just make it nicer with just a single function call to get a number.
Thanks for reading,
— TheOriginalBIT












