Search found 26 matches
- Mon Feb 15, 2010 9:09 pm
- Forum: Common Lisp
- Topic: Dynamically defined functions?
- Replies: 7
- Views: 6974
Re: Dynamically defined functions?
This might be true for lambda lists in some very general way, but DEFUN is specified to take an ordinary lambda list which is further specified to require symbols. Oops, I thought I read through that page. An alternative would be to use a special variable. That is not exactly idiomatic, but by this...
- Mon Feb 15, 2010 12:15 am
- Forum: Common Lisp
- Topic: Dynamically defined functions?
- Replies: 7
- Views: 6974
Re: Dynamically defined functions?
I followed the links from lambda list > parameter > variable > binding > name > identifier . I thought it was relevant because instead of literal symbols I was passing strings, which seems to be explicitly allowed. But yes, I did anticipate that it would be a compiler optimization. I just hoped ther...
- Sun Feb 14, 2010 8:31 pm
- Forum: Common Lisp
- Topic: Dynamically defined functions?
- Replies: 7
- Views: 6974
Re: Dynamically defined functions?
Erm... I'm not sure I was clear. The lambda-list will be passed into the containing function (along with the body), which is why I bound it to its own symbol; I think LAMBDA is irrelevant to that problem. I didn't think a macro would help because I need the operator to know the containing function's...
- Sun Feb 14, 2010 8:11 pm
- Forum: Common Lisp
- Topic: Dynamically defined functions?
- Replies: 7
- Views: 6974
Dynamically defined functions?
I want to define a function's lambda-list at runtime. As I read the HyperSpec this should be possible, specifically because an identifier can be either a symbol or a string. But this code: (defvar foo (list "bar" "baz")) (defun test foo (print "qux")) gives this error: ...
- Sat Feb 13, 2010 11:20 pm
- Forum: Common Lisp
- Topic: How do I know where error is occured?
- Replies: 5
- Views: 5085
Re: How do I know where error is occured?
So far I've found the output from Slime-CLisp's debugger (with default settings) pretty much useless. I've gathered a few links that I can read on the topic, but so far I guess I just haven't had my fill of punishment; I've found all my bugs by building test-cases and putting them in the REPL (or co...
- Sat Feb 13, 2010 12:04 pm
- Forum: The Lounge
- Topic: Subscribing to threads without posting.
- Replies: 2
- Views: 6308
Re: Subscribing to threads without posting.
D'oh. I thought it would be at the top-right of the thread. Why didn't I think to text-search?
Thanks!
Thanks!
- Fri Feb 12, 2010 8:41 pm
- Forum: The Lounge
- Topic: Subscribing to threads without posting.
- Replies: 2
- Views: 6308
Subscribing to threads without posting.
I'm having the same problem as described here. Is that button intentionally hidden, and could the administrator enable it?
- Fri Feb 12, 2010 8:16 pm
- Forum: The Lounge
- Topic: How Do You Teach Yourself Programming?
- Replies: 13
- Views: 21843
Re: How Do You Teach Yourself Programming?
I never really analyzed the process before, but first I should explain why I'm not sure how much programming I've taught myself. I took a Webmastering class in high school which introduced me to HTML, CSS, and maybe a little inline JavaScript. It wasn't a great class; everything was laid out with ta...
- Fri Feb 12, 2010 6:41 pm
- Forum: The Lounge
- Topic: Choosing the right LISP variant, if LISP is right
- Replies: 3
- Views: 7684
Re: Choosing the right LISP variant, if LISP is right
Thanks to both of you for the references, but for somewhat different reasons than Patrick's... I've wanted to make computers understand English for some time, but then again absurd goals are typical of me. :) Unfortunately the links to and on the Stanford website are broken... And the page is immuta...
- Fri Feb 12, 2010 6:01 pm
- Forum: The Lounge
- Topic: Deciding on Lisp or Scheme?
- Replies: 1
- Views: 4872
Re: Deciding on Lisp or Scheme?
I'm not, but I want to be... *subscribes*