oops, accidently left some debugging code in

This commit is contained in:
2023-11-14 20:21:58 +00:00
parent 6295e23d1b
commit 6dee9d6874
3 changed files with 3 additions and 6 deletions

View File

@@ -6,7 +6,7 @@ import (
)
// args without the program path
var Args = []string{"/home/william/Documents/code/argon-v3/tests/broken_funcCall.ar"}
var Args = os.Args[1:]
type stack = []ArObject

View File

@@ -1,7 +1,6 @@
package main
import (
"fmt"
"time"
)
@@ -195,7 +194,6 @@ var ArTime = Map(anymap{
},
},
"date": builtinFunc{"date", func(a ...any) (any, ArErr) {
fmt.Println(a, len(a))
if len(a) == 1 {
if typeof(a[0]) != "string" {
return nil, ArErr{

View File

@@ -2,12 +2,11 @@ let x = do
let class = {}
class.f(path) = do
let wowww = {}
wowww.nice(callback) = term.log(callback)
wowww.nice(callback) = callback()
return wowww
class.cool(path, callback) = do
term.log(path,callback)
let c = (class.f(path))
c.nice(callback)
return class.object()
x.cool("to", ()=10)
x.cool("to", ()=term.log("epic"))