further improvements
Some checks failed
Build / build (push) Successful in 10m40s
Publish Image / publish (push) Failing after 34s
Test / build (push) Has been cancelled

This commit is contained in:
2024-04-01 17:02:44 -04:00
parent aebbe43999
commit f9e6e164b0
26 changed files with 168 additions and 138 deletions

View File

@@ -30,11 +30,11 @@ func IdOf(args ...object.Object) object.Object {
} else if h, ok := arg.(*object.Hash); ok {
return object.String{Value: fmt.Sprintf("%p", h)}
} else if f, ok := arg.(*object.Function); ok {
return object.String{Value: fmt.Sprintf("%p", f)}
return object.String{Value: fmt.Sprintf("%p", &f)}
} else if c, ok := arg.(*object.Closure); ok {
return object.String{Value: fmt.Sprintf("%p", c)}
} else if b, ok := arg.(*object.Builtin); ok {
return object.String{Value: fmt.Sprintf("%p", b)}
return object.String{Value: fmt.Sprintf("%p", &c)}
} else if b, ok := arg.(object.Builtin); ok {
return object.String{Value: fmt.Sprintf("%p", &b)}
}
return nil
}