Jump to content
  • Sky
  • Blueberry
  • Slate
  • Blackcurrant
  • Watermelon
  • Strawberry
  • Orange
  • Banana
  • Apple
  • Emerald
  • Chocolate
  • Charcoal
Jonny

require addon

Recommended Posts

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.

Link to post
Share on other sites

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.

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use and Privacy Policy.