Search found 2 matches
- Sun Mar 17, 2013 9:50 am
- Forum: newLISP in the real world
- Topic: NEWBIE-ish: data as code
- Replies: 2
- Views: 2411
Re: NEWBIE-ish: data as code
Hmm ... (reading the friendly manual) ... eval-string would seem to be best approach, yes?
- Sun Mar 17, 2013 8:47 am
- Forum: newLISP in the real world
- Topic: NEWBIE-ish: data as code
- Replies: 2
- Views: 2411
NEWBIE-ish: data as code
It's been a few years since I last did anything with NewLISP. I ought to know the answer to this ... Can I use data as code? Can I have the name of a function in a string variable and execute the contents of that variable as if it were the name of a function? For example: (set 'f "even?") (f 2.5) As...