mirror of
https://github.com/Open-Argon/argon-v3.git
synced 2025-12-06 08:56:07 +00:00
oops, accidently left some debugging code in
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
@@ -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{
|
||||
|
||||
@@ -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"))
|
||||
Reference in New Issue
Block a user