Search found 59 matches
- Mon Jun 20, 2011 11:53 am
- Forum: Common Lisp
- Topic: Finding the minimum element in a list
- Replies: 15
- Views: 23471
Finding the minimum element in a list
Hello, Here's a basic looping question and what I thought was going to be a trivial problem. I want to find the smallest number in a list. The function min does not take a list, so I tried loop through it: (defun select (a) (let ((x 0)) (loop for i from 1 to (length a) do (if (< i x) (print (setf x ...
- Sat Jun 11, 2011 4:28 pm
- Forum: Common Lisp
- Topic: delete-file -> file-error
- Replies: 15
- Views: 13882
Re: delete-file -> file-error
After 2 hours of trying I've figured it out, thanks for the help guys: I still have not found out the issue with ACL, but I think it's safe to say for some odd reason ACL does not want you to put files in its home directory. So bottom line, don't save it there. As for the above issue, I guess the st...
- Sat Jun 11, 2011 4:21 pm
- Forum: Common Lisp
- Topic: delete-file -> file-error
- Replies: 15
- Views: 13882
Re: delete-file -> file-error
[ 2]> *default-pathname-defaults* #P"C:" [3]> (cd) #P"C:\\Program Files\\clisp-2.49\\" And I also can't change the "read-only" attribute of the directory, but I can delete files though. I'm using Clisp. I tried with clisp and I am nearly there! Though now I am getting ...
- Sat Jun 11, 2011 3:53 pm
- Forum: Common Lisp
- Topic: delete-file -> file-error
- Replies: 15
- Views: 13882
Re: delete-file -> file-error
Okay, well if you're using Clisp and you can delete that makes me think it's something to do with acl's directory. Guess I'll have to just put these files somewhere else or use Clisp.
Thanks!
Thanks!
- Sat Jun 11, 2011 1:31 pm
- Forum: Common Lisp
- Topic: delete-file -> file-error
- Replies: 15
- Views: 13882
Re: delete-file -> file-error
Well I am running it through Allegro CL, so the default-directory is CG-USER(3): *default-pathname-defaults* #P"C:\\acl82express\\" Yeah I was thinking maybe it is because of ACL. That directory is the one that is not allowing me to modify the contents of it. That seems awfully limited tho...
- Sat Jun 11, 2011 1:23 pm
- Forum: Common Lisp
- Topic: delete-file -> file-error
- Replies: 15
- Views: 13882
Re: delete-file -> file-error
I also have such permissions, but you do not seem to be bound by any "windows chains" outside the Program Files directory, etc. Sorry, this is the first time I've really tried working with files. Are you saying there is a way to stop this from happening and allow me to look into the conte...
- Sat Jun 11, 2011 1:15 pm
- Forum: Common Lisp
- Topic: delete-file -> file-error
- Replies: 15
- Views: 13882
Re: delete-file -> file-error
Actually, looking back at it...I have found that the directory is set to read-only. However, any attempt to change this is not working. I uncheck it and when I come back it has been checked again. I did of course hit apply and ok.
- Sat Jun 11, 2011 1:11 pm
- Forum: Common Lisp
- Topic: delete-file -> file-error
- Replies: 15
- Views: 13882
Re: delete-file -> file-error
Well I have written to it. I just made a simple .txt file, wrote some text to it, and now I am trying to either delete or rename it. The read-only check box has not been checked and has read,write and modify permissions.
Hmm, I guess I blame windows
Hmm, I guess I blame windows
- Sat Jun 11, 2011 12:58 pm
- Forum: Common Lisp
- Topic: delete-file -> file-error
- Replies: 15
- Views: 13882
Re: delete-file -> file-error
Gah, I was hoping you weren't going to say that. I've gone into the file and change it's permissions -- allowing everything. Also went to the directory itself and changed it's permissions -- again allowing everything. Yet I am still getting this error. Is there perhaps a better way to delete files/r...
- Sat Jun 11, 2011 12:40 pm
- Forum: Common Lisp
- Topic: delete-file -> file-error
- Replies: 15
- Views: 13882
delete-file -> file-error
Hello, I am running lisp on Allegro CL Express Edition and am getting this error when I try to delete this file. Note: the file does exist and I am running this on Windows. CG-USER(12): (delete-file "C:/acl82express/output.txt") Error: deleting "C:\\acl82express\\output.txt" resu...