wolfgangj / bone-lisp

The Bone Lisp programming language
Other
321 stars 21 forks source link

unbound syms (weird behaviour) #8

Closed wolfgangj closed 8 years ago

wolfgangj commented 8 years ago

Seems I recently messed something up:

@9: (use std/bench)
ERR: unbound sym: start-time
BACKTRACE:
(_load 'std/bench)
  ;; hidden tail calls: 1
(_with-var '_*incomplete-mods* '(std/bench) #sub(id=0x7f7c158205c5 name=@_use-mod argc=0 take-rest?=#f))
(_use-mod 'std/bench)
(each '(std/bench) #sub(id=0x7f7c162dcf4d name=_use-mod argc=1 take-rest?=#f))
  ;; hidden tail calls: 1

@10: (use std/bench)
(std/bench std/math)
@11: (say-time (times 50000 |(in-reg (iota 100 1 1) ())))
ERR: unbound sym: say-timex |
BACKTRACE:

@12: (say-time (times 50000 |(in-reg (iota 100 1 1) ())))
ERR: unbound sym: say-time
BACKTRACE:

This is the kind of bug that will probably take me a while to find.

wolfgangj commented 8 years ago

I had time to look into this now and fixed it in e441e9587261a4bddbeaae171f074cc744766e57