I assume this has probably been requested plenty of times but all the alternatives I read weren't any good.
os.loadAPI clutters the global environment and forces the name of the API to be the file name.
dofile requires the script to be recompiled every time.
os.run is just not a good solution either.
Why doesn't require exist? I mean sure it's easy to implement on our own but having it be an actual feature makes it so we don't have to create a startup script for each computer just to do it.
I understand there is overhead but again if the package table can be accessed we can free libraries we no longer need to use.
0
require function
Started by cntkillme, May 19 2017 02:06 AM
2 replies to this topic
1 user(s) are reading this topic
0 members, 1 guests, 0 anonymous users