Actually, on pondering it for a few more minutes, your original solution is sufficient for what I'm trying to do, which is to consolidate a lot of similar code into one common parent function, but it would be interesting to know how to call the function if I only had a string. <br>
<br>So, if for argument's sake, I had a file with a list of approved functions and one of them were 'posn-x', how would I take "posn-x" the string and turn into posn-x, the accessor call (or function call if it weren't a struct)? <br>
<br>I tried passing variations to eval, but I always wind up with something like (eval '("posn-x")) or eval'('posn-x)), never the actual function, posn-x. <br><br><div class="gmail_quote">On Tue, Sep 6, 2011 at 1:32 PM, Matthias Felleisen <span dir="ltr"><<a href="mailto:matthias@ccs.neu.edu">matthias@ccs.neu.edu</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div style="word-wrap:break-word"><div><br></div><div>Are you reading the desired field name from somewhere? </div><div>
<div></div><div class="h5"><div><br></div><br></div></div></div></blockquote></div><br>