r/ComputerCraft • • Dec 12 '16

Nested programs or functions?

I'm writing a utility program that will give me about 20 different functions that the computer can perform all red stone related.

Each function is relatively small, is it better to split them into seperate programs to be called on or have a small api of functions that the main program can use.

Also i need the program to persist after restarts etc so what is the best way to do this.

2 Upvotes

8 comments sorted by

View all comments

1

u/flauntin Dec 12 '16

So if I load api on startup and then also have a shell.run on a outside program the will be modified to say what to run each time would that work.

Also how does one create a program from within a program?