Jonny 0 Posted April 14, 2016 Share Posted April 14, 2016 I think it would be very usefull if you would make it Possible to delete registred APIs at the /lib/package.lua file. Actually, I have to restart the Computer every time when I changed the Content of an API becouse I think its internally registred. This is very annoying, becouse I am working on a GUI API which contains multiple files and I have to check the Screen-output for the widgets after every change. I think I will add an function later by myself, but I think this would be an good Idea to include this function with the OS. Quote Link to post Share on other sites
Molinko 43 Posted April 15, 2016 Share Posted April 15, 2016 When prototyping libs its helpful to put this at the top of your script to reload a specific library loaded with require. _G.packages.loaded["myLibFileName"] = nil -note the file name is extension less, And should be used before your call to require your lib. Quote Link to post Share on other sites
Jonny 0 Posted April 15, 2016 Author Share Posted April 15, 2016 ok, thats my mystake. I overlooked the 17th line in the /lib/package.lua file (package.loaded = loaded). (there is an little mistake, it has to be package and not packages) Thanks for the reply Quote Link to post Share on other sites