Refactor Type to be an int
This commit is contained in:
@@ -15,8 +15,8 @@ func (cf *CompiledFunction) Bool() bool {
|
||||
return true
|
||||
}
|
||||
|
||||
func (cf *CompiledFunction) Type() ObjectType {
|
||||
return COMPILED_FUNCTION_OBJ
|
||||
func (cf *CompiledFunction) Type() Type {
|
||||
return CFunctionType
|
||||
}
|
||||
|
||||
func (cf *CompiledFunction) Inspect() string {
|
||||
@@ -36,8 +36,8 @@ func (c *Closure) Bool() bool {
|
||||
return true
|
||||
}
|
||||
|
||||
func (c *Closure) Type() ObjectType {
|
||||
return CLOSURE_OBJ
|
||||
func (c *Closure) Type() Type {
|
||||
return ClosureType
|
||||
}
|
||||
|
||||
func (c *Closure) Inspect() string {
|
||||
|
||||
Reference in New Issue
Block a user