[plt-scheme] Namespace problems...

From: Paulo Jorge de Oliveira Cantante de Matos (pocm at sat.inesc-id.pt)
Date: Thu Jan 27 22:25:06 EST 2005

Hi all,

First of all, the real stuff! The idea is as follows:
I have a list of stuff like this:
((isbn "1231293821")
(urls (url1 "httpsdkfjasj") (url2 "httpasdfasd"))
(id "asdas" (sdfsd)))

imagine each list inside the main one as an item. I have
dedicated parsers to parse each one: parse-isbn, parse-urls,
parse-id and they returns a convenient object.
The initial idea was to map along the list, I get the car of
each list. Preppend "parse-", get its value and call it with
each of the lists.

It won't work, namespace-variable-value is not working as I
would like.  This won't work:

(module test mzscheme

  (define (hah-foo)
    (display "foo"))

  ((namespace-variable-value 'hah-foo #t))


Even if I provide hah-foo, (which in my application would mean
I would have to provide all parse-* functions) it doesn't work.

Any idea about this, or another feasible solution?


Paulo Jorge Matos - pocm at sat inesc-id pt
Engº de Informática e Computadores
INESC-ID - Grupo SAT - MathSAT

Posted on the users mailing list.