[plt-scheme] namespace-variable-value missing?
On Wed, 3 May 2006, Paulo J. Matos wrote:
> (module test mzscheme
>
> (require (lib "texpict.ss" "texpict"))
>
> (namespace-variable-value 'ht-append))
Hi Paulo,
Odd. I don't understand the documentation too, then --- I would have
expected use-mapping? to let us get the imported module variable.
Here's an example that appears to get at *ht-append*:
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
(module test mzscheme
(require (lib "texpict.ss" "texpict"))
(define my-ht-append
(namespace-variable-value
'ht-append
#t
(lambda () #f)
(module->namespace '(lib "texpict.ss" "texpict")))))
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
but I don't yet understand why your example doesn't work yet.
Best of wishes!