Refactor Type to be an int
This commit is contained in:
4
repl.go
4
repl.go
@@ -78,7 +78,7 @@ func VmREPL(args []string, debug bool) error {
|
||||
continue
|
||||
}
|
||||
|
||||
if val := mvm.LastPoppedStackElem(); val.Type() != object.NULL_OBJ {
|
||||
if val := mvm.LastPoppedStackElem(); val.Type() != object.NullType {
|
||||
fmt.Fprintln(t, val.Inspect())
|
||||
}
|
||||
}
|
||||
@@ -176,7 +176,7 @@ func SimpleVmREPL(args []string, debug bool) {
|
||||
continue
|
||||
}
|
||||
|
||||
if val := mvm.LastPoppedStackElem(); val.Type() != object.NULL_OBJ {
|
||||
if val := mvm.LastPoppedStackElem(); val.Type() != object.NullType {
|
||||
fmt.Println(val.Inspect())
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user