start moving numbers to oop

This commit is contained in:
2024-07-09 14:05:21 +01:00
parent 3761070e82
commit 7c23db80d4
11 changed files with 333 additions and 242 deletions

View File

@@ -193,7 +193,6 @@ func makeGlobal() ArObject {
vars["todeg"] = ArToDeg
vars["colour"] = ArColour
vars["torad"] = ArToRad
vars["abs"] = ArAbs
vars["fraction"] = builtinFunc{"fraction", func(a ...any) (any, ArErr) {
if len(a) == 0 {
return nil, ArErr{TYPE: "fraction", message: "fraction takes 1 argument",