summaryrefslogblamecommitdiffstats
path: root/vendor/github.com/d5/tengo/objects/index_assignable.go
blob: a1c6cbff26c2f2f6d80a6151ad409fc46c0393be (plain) (tree)
1
2
3
4
5
6
7
8
9







                                                                           
package objects

// IndexAssignable is an object that can take an index and a value
// on the left-hand side of the assignment statement.
type IndexAssignable interface {
	// IndexSet should take an index Object and a value Object.
	// If an error is returned, it will be treated as a run-time error.
	IndexSet(index, value Object) error
}