| | |
Lisp load function in windows
Please support our Computer Science advertiser: Learn about neural networks and artificial intelligence.
![]() |
•
•
Join Date: Feb 2007
Posts: 1
Reputation:
Solved Threads: 0
This should be a really simple thing, but for some reason I have had no luck getting anything to work. I have CLISP and GCL, and on neither can I specify where a file is using the load function. I've tried setting the pathname, but it removes the backslashes, so its not looking in any directory, let alone the right one. Basically, I want to do this:
(load "c:\users\documents\john\schoolwork\cs\3600\project3.lisp")
But it says it can't find the file c:usersdocumentsjohnschoolworkcs3600project3.lisp
similarly when I try and set the pathname, it removes the backslashes. Anyone know what I'm donig wrong? I figure it's something really simple, but I just can't figure it out, and none of the documentation actually has examples with a windows path involved.
Thanks.
(load "c:\users\documents\john\schoolwork\cs\3600\project3.lisp")
But it says it can't find the file c:usersdocumentsjohnschoolworkcs3600project3.lisp
similarly when I try and set the pathname, it removes the backslashes. Anyone know what I'm donig wrong? I figure it's something really simple, but I just can't figure it out, and none of the documentation actually has examples with a windows path involved.
Thanks.
I don't accept change; I don't deserve to live.
Jo Tujhe Jagaaye, Nindein Teri Udaaye Khwaab Hai Sachcha Wahi.
Nindon Mein Jo Aaye Jise To Bhul Jaaye Khawab Woh Sachcha Nahi.
Khwaab Ko Raag De, Nind Ko Aag De
Jo Tujhe Jagaaye, Nindein Teri Udaaye Khwaab Hai Sachcha Wahi.
Nindon Mein Jo Aaye Jise To Bhul Jaaye Khawab Woh Sachcha Nahi.
Khwaab Ko Raag De, Nind Ko Aag De
If the backslash is used to start escape sequences in Lisp, the compiler will remove it and replace it with whatever \u (for example) represents (which may be nothing). Try escaping each backslash with a backslash i.e.
If this fixes the problem it is likely this rule wil apply in all quoted strings within the language.
Steven.
lisp Syntax (Toggle Plain Text)
(load "c:\\users\\documents\\john\\schoolwork\\cs\\3600\\project3.lisp")
If this fixes the problem it is likely this rule wil apply in all quoted strings within the language.
Steven.
The one question you should not ask when teaching a new language structure is "Do you understand?". Do you understand?
•
•
Join Date: Jan 2009
Posts: 2
Reputation:
Solved Threads: 0
•
•
•
•
This should be a really simple thing, but for some reason I have had no luck getting anything to work. I have CLISP and GCL, and on neither can I specify where a file is using the load function. I've tried setting the pathname, but it removes the backslashes, so its not looking in any directory, let alone the right one. Basically, I want to do this:
(load "c:\users\documents\john\schoolwork\cs\3600\project3.lisp")
But it says it can't find the file c:usersdocumentsjohnschoolworkcs3600project3.lisp
similarly when I try and set the pathname, it removes the backslashes. Anyone know what I'm donig wrong? I figure it's something really simple, but I just can't figure it out, and none of the documentation actually has examples with a windows path involved.
Thanks.
Get rid of the double quotes and make them single quotes, lisp is reading your backslashes as attempted escape characters and stringing the whole thing together.
![]() |
Similar Threads
- Lisp Load Function (Computer Science)
- exec function on Windows XP (PHP)
- LISP:i changed the load function accidently...HELP (Computer Science)
- No time... bitch load of problems (Windows NT / 2000 / XP)
Other Threads in the Computer Science Forum
- Previous Thread: Distance Learning in IT/CS?
- Next Thread: BASE SAS CERTIFICATION
Views: 2355 | Replies: 4
| Thread Tools | Search this Thread |
Tag cloud for Computer Science
ai algorithm algorithms amazon assignment assignments automata battery binary bizarre bletchleypark blogging bomb business cern clueless codebreaker compiler computers computerscience computertrackingsoftware connect csc data dataanalysis dataintepretation development dfa dissertation dissertations dissertationthesis dissertationtopic ebook energy extensions floatingpoint foreclosure foreclosuresoftware fuel gadgets geeks givemetehcodez government graphics hardware history homeowners homework homeworkassignment homeworkhelp humor ibm idea internet iphone ipod itcontracts laws lazy linkbait lsmeans mainframes marketing mining mobileapplication msaccess nano netbeans networking news os p2p parser piracy piratebay principles programming rasterizer research sam-being-cute sas science sex spoonfeeding sql stephenfry student study supercomputer supercomputing sweden technology textfield tree turing turingtest uk virus warehouse ww2






