Jump to content




require function


2 replies to this topic

#1 cntkillme

  • Members
  • 24 posts

Posted 19 May 2017 - 02:06 AM

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.

#2 KingofGamesYami

  • Members
  • 3,002 posts
  • LocationUnited States of America

Posted 19 May 2017 - 02:18 AM

It exists.

/thread

#3 cntkillme

  • Members
  • 24 posts

Posted 19 May 2017 - 02:32 AM

Oh my god it was literally added yesterday LOL gg





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users