Search found 14 matches

by webguy08
Thu Jan 14, 2010 6:00 am
Forum: Common Lisp
Topic: :Keywords and their use
Replies: 3
Views: 4596

Re: :Keywords and their use

Aaah I see. That second article explains it well :). However, how was I supposed to know that the keyword had to be :TEST?
by webguy08
Wed Jan 13, 2010 6:22 pm
Forum: Common Lisp
Topic: :Keywords and their use
Replies: 3
Views: 4596

:Keywords and their use

Hi all, I'm struggling to understand the use of keywords. I understand that keywords evaluate to themselves, thus :A is :A. But take the following code: (member '(c cat) '((b bird) (c cat) (d dog) (s squirrel))) If I were to run that, it would return NIL because member is using eql instead of equal ...
by webguy08
Wed Jan 13, 2010 12:45 pm
Forum: Common Lisp
Topic: Lisp practice fuction not returning what I expected
Replies: 4
Views: 4894

Re: Lisp practice fuction not returning what I expected

I think I understand that now :).
by webguy08
Tue Jan 12, 2010 4:42 pm
Forum: Common Lisp
Topic: Lisp practice fuction not returning what I expected
Replies: 4
Views: 4894

Re: Lisp practice fuction not returning what I expected

Thank you so much it works now! :D. I would probably never have guessed that was the problem. So if I use literals only one is stored in memory...hmmm. If I were to set a list to quote a (' a) then would the following diagram be roughly correct? [ | --]-->[ | --]-->[ |/] This is a list. |__________|...
by webguy08
Tue Jan 12, 2010 2:52 pm
Forum: Common Lisp
Topic: Lisp practice fuction not returning what I expected
Replies: 4
Views: 4894

Lisp practice fuction not returning what I expected

Hi all, I've written a function to rate games and return a list of the games with their rating, but I am having trouble getting it to return the list properly. It either returns the list with their ratings as 0 or as 1, never more like it should. I have worked on this function for a while now and no...
by webguy08
Sat Jan 09, 2010 2:53 pm
Forum: Common Lisp
Topic: Lisp Debugger
Replies: 5
Views: 13280

Re: Lisp Debugger

I downloaded LispWorks, but I have to say the program doesn't seem to have a very intuitive design :|. I have no idea how to step through my code...Anyone know a step-by-step tutorial?
by webguy08
Fri Jan 08, 2010 7:10 pm
Forum: Common Lisp
Topic: Lisp Debugger
Replies: 5
Views: 13280

Lisp Debugger

Hi all,

I'm writing in Common Lisp and I need a debugger; one which can allow me to step through each line of code and see what it is returning. Is there such a debugger?
by webguy08
Tue Jan 05, 2010 7:07 am
Forum: Common Lisp
Topic: Beginners Question - Can't manipulate a local variable
Replies: 12
Views: 10688

Re: Beginners Question - Can't manipulate a local variable

At the moment I'm just trying to get to grips with how Lisp works, before I start declaring classes and such.
It completely makes sense now after seeing the Java examples!!! In fact, I've gotten it to do what I want now :D.

Btw I really appreciate all the help guys.
by webguy08
Mon Jan 04, 2010 5:39 pm
Forum: Common Lisp
Topic: Beginners Question - Can't manipulate a local variable
Replies: 12
Views: 10688

Re: Beginners Question - Can't manipulate a local variable

I tried changing the list's name to *game-list* but that didn't change the results, so I take it this is just common practice? So, at the moment Lisp thinks that I'm passing in a list and it should treat it as a local variable? How would I make it understand that I want it to change the global varia...
by webguy08
Mon Jan 04, 2010 3:27 pm
Forum: Common Lisp
Topic: Beginners Question - Can't manipulate a local variable
Replies: 12
Views: 10688

Re: Beginners Question - Can't manipulate a local variable

I said that my previous post was the last :lol:, but I seem to have come across something new which I can't explain. Taking the list that I provided in the previous post: (setf game-list '(((title "New Super Mario Bros. Wii") (genre "Platform") (platform "Wii") (price 2...