1 posts
Posted 01 March 2012 - 04:19 AM
I was wondering what the benefit is in using local variables compared to global ones?
1111 posts
Location
Portland OR
Posted 01 March 2012 - 04:25 AM
See this thread, its got some pro's listed.
http://www.computercraft.info/forums2/index.php?/topic/336-question-about-user-input-into-prints/page__fromsearch__1For the most part, local vars are block specific which will help you avoid conflicts between other programs. They are slightly faster, so on and so forth.
Its always best to use local vars where you can.