Lisp Programming defparameter

Please support our Computer Science advertiser: Learn about neural networks and artificial intelligence.
Reply

Join Date: Mar 2006
Posts: 12
Reputation: coolman2006 is an unknown quantity at this point 
Solved Threads: 0
coolman2006 coolman2006 is offline Offline
Newbie Poster

Re: Lisp Programming defparameter

 
0
  #11
Mar 18th, 2006
then wats the point of dis forum then!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! the truth is u dont know wat ur talking about i only wanted help so I can learn


thanks for nothing
Reply With Quote Quick reply to this message  
Join Date: Jun 2005
Posts: 2,052
Reputation: Rashakil Fol is just really nice Rashakil Fol is just really nice Rashakil Fol is just really nice Rashakil Fol is just really nice 
Solved Threads: 139
Team Colleague
Rashakil Fol's Avatar
Rashakil Fol Rashakil Fol is offline Offline
Super Senior Demiposter

Re: Lisp Programming defparameter

 
3
  #12
Mar 18th, 2006
Sigh...

If you don't know anything about the language you're using, how do you expect to do anything useful with it? Are you just going to go around asking people to write code for you, without learning anything?

Here's one book you can buy:

http://www.paulgraham.com/acl.html

Here is a pdf to On Lisp, which assumes you know a bit about the language already...

http://www.paulgraham.com/lib/paulgraham/onlisp.pdf

There are countless resources for learning this language online, and I am not in the mood to tell you basics that you could look up for yourself.
All my posts may be redistributed under the GNU Free Documentation License.
Reply With Quote Quick reply to this message  
Join Date: Jun 2005
Posts: 2,052
Reputation: Rashakil Fol is just really nice Rashakil Fol is just really nice Rashakil Fol is just really nice Rashakil Fol is just really nice 
Solved Threads: 139
Team Colleague
Rashakil Fol's Avatar
Rashakil Fol Rashakil Fol is offline Offline
Super Senior Demiposter

Re: Lisp Programming defparameter

 
3
  #13
Mar 18th, 2006
And here's the one I was looking for:
http://www.gigamonkeys.com/book/
All my posts may be redistributed under the GNU Free Documentation License.
Reply With Quote Quick reply to this message  
Join Date: Mar 2006
Posts: 12
Reputation: coolman2006 is an unknown quantity at this point 
Solved Threads: 0
coolman2006 coolman2006 is offline Offline
Newbie Poster

Re: Lisp Programming defparameter

 
0
  #14
Mar 20th, 2006
ok guys y does dis dont work (defparameter *car* (Ford (Fieata Mondeo Focus)))

so wat i am trying to say that ford is a list and within dat list there a fieasta and moneo and focus

but when i ran it in Lisp it dont work so wat wrong with it
Reply With Quote Quick reply to this message  
Join Date: Aug 2005
Posts: 5,273
Reputation: iamthwee is a splendid one to behold iamthwee is a splendid one to behold iamthwee is a splendid one to behold iamthwee is a splendid one to behold iamthwee is a splendid one to behold iamthwee is a splendid one to behold iamthwee is a splendid one to behold iamthwee is a splendid one to behold 
Solved Threads: 378
Featured Poster
iamthwee's Avatar
iamthwee iamthwee is offline Offline
Posting Expert

Re: Lisp Programming defparameter

 
0
  #15
Mar 20th, 2006
You have probably written it incorrectly.
*Voted best profile in the world*
Reply With Quote Quick reply to this message  
Join Date: Jun 2005
Posts: 2,052
Reputation: Rashakil Fol is just really nice Rashakil Fol is just really nice Rashakil Fol is just really nice Rashakil Fol is just really nice 
Solved Threads: 139
Team Colleague
Rashakil Fol's Avatar
Rashakil Fol Rashakil Fol is offline Offline
Super Senior Demiposter

Re: Lisp Programming defparameter

 
2
  #16
Mar 20th, 2006
Your problem is that you don't have a function named Ford, and that's what your Lisp interpreter is looking for. If you want to assign a list to the value, you should assign a list; right now your code wants to call a procedure named Fieata, too...
All my posts may be redistributed under the GNU Free Documentation License.
Reply With Quote Quick reply to this message  
Join Date: Mar 2006
Posts: 12
Reputation: coolman2006 is an unknown quantity at this point 
Solved Threads: 0
coolman2006 coolman2006 is offline Offline
Newbie Poster

Re: Lisp Programming defparameter

 
0
  #17
Mar 20th, 2006
Thanks ok now I want to create another list where it will put the ford item into another list so the current ford list becomes nill because its being push to another list how do i do dat any ideas

(defparameter *ford* (list ' Fieata ' Mondeo ' Focus))

(defparameter *newFord* ( () ;;which is nill
Reply With Quote Quick reply to this message  
Join Date: Jun 2005
Posts: 2,052
Reputation: Rashakil Fol is just really nice Rashakil Fol is just really nice Rashakil Fol is just really nice Rashakil Fol is just really nice 
Solved Threads: 139
Team Colleague
Rashakil Fol's Avatar
Rashakil Fol Rashakil Fol is offline Offline
Super Senior Demiposter

Re: Lisp Programming defparameter

 
3
  #18
Mar 21st, 2006
If you bothered to learn the basics of the language, you'd know the answer.
All my posts may be redistributed under the GNU Free Documentation License.
Reply With Quote Quick reply to this message  
Join Date: Aug 2005
Posts: 71
Reputation: indienick is an unknown quantity at this point 
Solved Threads: 2
indienick's Avatar
indienick indienick is offline Offline
Junior Poster in Training

Re: Lisp Programming defparameter

 
0
  #19
Jan 22nd, 2007
Watch out with variable names...especially in this situation: CAR is a function in Lisp, so I would name the variable *cars* instead.

It's also not working, because you haven't defined the symbols Ford, Fiesta, Focus and Mondeo anywhere. Unless you want to define them like this: (defparameter car-name (cons "car model" "car brand")), you will have to assign them as strings in lists: (defparameter *cars* (cons "Ford" (list "Focus" "Fiesta" "Mondeo")))

I hope you find this of some use - even though this thread is approximately 10 months old.


NOTE: When discussing Lisp, all functions are always typed in caps.
NOTE: If you don't know what CONS lists are, look them up - they're almost always one of the first things covered in any Lisp book/reference.
Last edited by indienick; Jan 22nd, 2007 at 3:09 pm.
Angel-headed hipsters burning for the ancient heavenly connection, to the starry dynamo in the machinery of the night.
-Ginsburg

Don't tell me to "google it" - I already have.
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Similar Threads
Other Threads in the Computer Science Forum
Thread Tools Search this Thread



Tag cloud for Computer Science
About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC