Search found 19 matches

by blandest
Mon Jan 11, 2010 8:24 am
Forum: Common Lisp
Topic: Initialization of variables
Replies: 5
Views: 6658

Re: Initialization of variables

I suggest using a debugger for better understanding how your variables get changed. Also, you may want to look for the definition of the "classic" #'group function. That will teach you a generic (beautiful) solution to your problem; your code resembles C too much :)
by blandest
Mon Jan 11, 2010 7:13 am
Forum: Common Lisp
Topic: Initialization of variables
Replies: 5
Views: 6658

Re: Initialization of variables

The function #'append expects a list as a first parameter, but you have passed 'ret' which has the value of '3'. I am not sure if your code will work as desired, but you can try this: (append (list ret) (list entry)) I would solve your problem with something like this: (let ((l (list "a" &...
by blandest
Wed Jan 06, 2010 6:40 am
Forum: Common Lisp
Topic: Redirecting Error Output
Replies: 3
Views: 4349

Re: Redirecting Error Output

Check the *inferior-lisp* Emacs buffer for errors.
by blandest
Tue Oct 20, 2009 11:33 am
Forum: Common Lisp
Topic: Clozure CL and unicode on Windows
Replies: 3
Views: 8060

Re: Clozure CL and unicode on Windows

You could try to read the first two bytes (with #'read-byte) and just ignore them if they match the BOM signature.
by blandest
Tue Aug 04, 2009 7:09 am
Forum: Common Lisp
Topic: need help with lispworks
Replies: 17
Views: 32725

Re: need help with lispworks

If you are using the personal license for LispWorks then that is probably why you cannot create executables. Clozure CL and CLISP can create Win32 executables and have no artificial limitations (as far as I know).
by blandest
Fri Jul 03, 2009 5:33 am
Forum: Emacs
Topic: need help on Clozure CL/Emacs on Vista
Replies: 6
Views: 16582

Re: need help on Clozure CL/Emacs on Vista

Why don't you just save a copy of the source code and convert these files to the some "good" encoding for Windows ? I did something similar using this function (works in ccl): (defun convert-file-encoding (file-encoding target-encoding file) "Converts `file' from `file-encoding' to `t...
by blandest
Mon Feb 02, 2009 1:29 am
Forum: Common Lisp
Topic: Allegro 8.0 Infinite Loop Stalling
Replies: 4
Views: 7200

Re: Allegro 8.0 Infinite Loop Stalling

Why are you using #.*standard-output* ? You could probably get rid of the #. (but maybe I'm wrong).
Also, the output stream parameter to #'print defaults to *standard-output*, so you may remove it altogether.
Yes, this does not help you :)
by blandest
Fri Jan 23, 2009 9:16 am
Forum: Common Lisp
Topic: Strange error in CLISP
Replies: 1
Views: 4116

Strange error in CLISP

I'm running the following code in CLISP: (defun test () (format t "~A")) (compile 'test) ;; this is required to reproduce the error (test) When running #'test without compiling it first, the error is (obviously): There are not enough arguments left for this format directive. After compilin...
by blandest
Fri Jan 23, 2009 5:41 am
Forum: Common Lisp
Topic: A procedure to extract atoms from a list
Replies: 11
Views: 23860

Re: A procedure to extract atoms from a list

You need to write the "flatten" function (you can search for it, but try to write it yourself).

Code: Select all

(defun extract-atoms (list)
  (sort (remove-duplicates (flatten list))
          #'string<
          :key #'symbol-name))
by blandest
Fri Jan 23, 2009 5:27 am
Forum: Common Lisp
Topic: Help with asdf
Replies: 6
Views: 11882

Re: Help with asdf

Check your asdf:*central-registry* variable. It should contain something like: ("/path/to/asdf-install.asd" ....) If it doesn't, you'll need to push the asdf-install.asd into the asdf:*central-registry* (not the folder that contains the .asd file). Also, you can check if the path is correc...