0

I've got a scripted program, and I'm currently using multiple states for different environments, to ensure user and system scripts don't mess with each other.

What are the pros/cons of using multiple environments against a single context instead?

greatwolf
  • 20,287
  • 13
  • 71
  • 105
Phil Lello
  • 8,377
  • 2
  • 25
  • 34
  • Could whoever down-voted please add a comment - this seems like a valid question about the Lua C API to me. – Phil Lello Jan 15 '15 at 22:49
  • 6
    The advantage is, you can run all the states at the same time, and they truly are separate as long as you don't deliberately change it. The disadvantages are the need for marshalling information through the native layer, and duplication of common data. – Deduplicator Jan 15 '15 at 23:03

0 Answers0