github.com/hirochachacha/plua@v0.0.0-20170217012138-c82f520cc725/object/process.go (about)

     1  package object
     2  
     3  type Process interface {
     4  	// returns new Process which environment is inherited from parent
     5  	Fork() Process
     6  
     7  	Exec(p *Proto, args ...Value) (rets []Value, err error)
     8  
     9  	NewTableSize(asize, msize int) Table
    10  	NewClosure(p *Proto) Closure
    11  
    12  	Globals() Table
    13  	Loaded() Table
    14  	Preload() Table
    15  
    16  	GetMetatable(val Value) Table
    17  	SetMetatable(val Value, mt Table)
    18  
    19  	// aux API
    20  
    21  	Require(name string, open GoFunction) (Value, bool)
    22  }