[Larceny-users] Undefined binding not detected, uses it somehow
Derick Eddington
derick.eddington at gmail.com
Tue Mar 17 19:08:19 EDT 2009
Larceny v0.97a4 (alpha test) (Mar 17 2009 11:29:20, precise:Linux:unified)
larceny.heap, built on Tue Mar 17 11:33:15 PDT 2009
ERR5RS mode (no libraries have been imported)
> (import (rnrs base))
> (define (f x)
(unless (number? x)
(assertion-violation 'f "not a number" x))
(- x))
> (f 1)
Error: unhandled condition:
Compound condition has these components:
#<record &assertion>
#<record &who>
who : f
#<record &message>
message : "not a number"
#<record &irritants>
irritants : (1)
Entering debugger; type "?" for help.
debug> q
> (number? 1)
#t
> (unless (number? 1) 'blah)
Error: Undefined global variable "unless".
Entering debugger; type "?" for help.
debug>
--
: Derick
----------------------------------------------------------------
More information about the Larceny-users
mailing list