[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [plt-scheme] Namespaces

At 09 May 2002 19:33:58 +0100, Paulo J. Matos wrote:
> When I try to use namespace-set-variable-binding! I get:
> reference to undefined identifier:
> namespace-set-variable-binding!
> This function is mentioned in chapter 8 of MzScheme manual. Do I
> need to require any lib?

No, the manual for 200alpha12 reported the wrong procedure name. It
should have been


> How can I given a function retrieve its name as a symbol?
> For example:
> (define fib
>         (lambda ... blablabla))
> Now, I pass it to (foo fib)
> I want foo to return fib (the symbol 'fib).
> How can I do that?

Usually, `object-name' will give you the name:

  > (define f (lambda (x) x))
  > (object-name f)