[Larceny-users] HOWTO procedure-name-set! ?
William D Clinger
will at ccs.neu.edu
Wed May 18 21:07:57 EDT 2016
Ken Dickey wrote:
> I am using R7 code but also procedure-name-set! which has just become unavailabel with -r7r6.
>
> Is there a 'lenient option?
>
> Can I do an (import (cruft ..)) ?
Yes. (import (primitives procname ...)) will import procname ...
from Larceny's underlying R5RS layer.
> What is the proper way to get procedure-name-set! and friends back into the global environment?
% ./larceny --r7rs
Larceny v0.99a1 (alpha test) (May 17 2016 19:31:23, precise:Linux:unified)
larceny.heap, built on Tue May 17 19:31:43 EDT 2016
> (import (primitives procedure-name-set!))
> (define foo (lambda (x) (* x x)))
foo
> foo
#<PROCEDURE foo>
> (procedure-name-set! foo 'bar)
#f
> foo
#<PROCEDURE bar>
Will
More information about the Larceny-users
mailing list