Refactor Type to be an int
This commit is contained in:
@@ -10,8 +10,8 @@ type Array struct {
|
||||
Elements []Object
|
||||
}
|
||||
|
||||
func (ao *Array) Type() ObjectType {
|
||||
return ARRAY_OBJ
|
||||
func (ao *Array) Type() Type {
|
||||
return ArrayType
|
||||
}
|
||||
|
||||
func (ao *Array) Bool() bool {
|
||||
|
||||
Reference in New Issue
Block a user