From: Mark M. <mg...@ch...> - 2004-10-08 19:07:41
|
Hey I'm new to JScheme however I've quickly discovered my need to do a relatively complex thing... I'd like to be able to pass a string into a function which will then act as a factory to create a new function who's name is equal to the value of the input string. In other words: foo is set equal to "bar" dynamicdefine (my function) with foo as a parameter should return a new function (whatever that may be) assigned to the name "bar" now there would be a new function called: bar I guess this all comes down to: is there a way to cause the value of a string to be used as the name of a new symbol? Perhaps I'm not even asking the question correctly... Help? Thanks, -mark |