[plt-scheme] setting a var whose name is det'ed at runtime (newb)

From: jos koot (jos.koot at telefonica.net)
Date: Thu Apr 26 11:47:40 EDT 2007

Look for namespace-set-variable-value! in the help menu,
PLT MzScheme Language Manual section Namespaces.
Works for top-level variables only.
Jos Koot

(((((lambda(x)((((((((x x)x)x)x)x)x)x)x))
    (lambda(x)(lambda(y)(x(x y)))))
  (lambda()(printf "Greetings, Jos~n"))))
  ----- Original Message ----- 
  From: George Herson 
  To: PLT-Scheme mailing list 
  Sent: Thursday, April 26, 2007 3:44 PM
  Subject: [plt-scheme] setting a var whose name is det'ed at runtime (newb)

  (set! (get-name) (car some-list)) 
  returns "set!: not an identifier in: (get-name)".  I
  think this behavior is required by lexical scoping, in
  which case, How do we set a variable whose name is
  dynamically determined?  thanks
    For list-related administrative tasks:
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.racket-lang.org/users/archive/attachments/20070426/3443835f/attachment.html>

Posted on the users mailing list.