[Larceny-users] Larceny v0.963 what is bound to 'make-parameter ?
Ken Dickey
Ken.Dickey at whidbey.com
Thu Jul 31 17:50:08 EDT 2008
> larceny
Larceny v0.963 "Fluoridation" (Jul 29 2008 17:41:31, precise:Linux:unified)
larceny.heap, built on Tue Jul 29 17:43:55 EDT 2008
> (define p (make-parameter 3))
Error: Wrong number of arguments to procedure #<PROCEDURE make-parameter>,
which expected #!unspecified but got 1
Entering debugger; type "?" for help.
debug> q
> (make-parameter) ;; Huh?
Error: Wrong number of arguments to procedure #<PROCEDURE make-parameter>,
which expected #!unspecified but got 0
Entering debugger; type "?" for help.
debug> q
> (require 'srfi-39)
#t
> (define p (make-parameter 3))
> (p)
3
> (p 4)
(4 . #!unspecified)
> (p)
4 ;; as expected
;;=========
Should there be a warning for the unwary?
-KenD
More information about the Larceny-users
mailing list