Search found 5 matches

by nerobot
Thu May 13, 2010 5:20 am
Forum: Common Lisp
Topic: How to include a file
Replies: 10
Views: 9184

Re: How to include a file

No problem. Perhaps if I send a piece of the code that I've got written it will be better than my crappy explanation :) (setf in (open "FirstGeneration")) (run-genetic-programming-system 'AREA-CIRCLE (random 100.0) 10000 *number-of-population* (second (read in)) (second (read in)) (second ...
by nerobot
Thu May 13, 2010 4:48 am
Forum: Common Lisp
Topic: How to include a file
Replies: 10
Views: 9184

Re: How to include a file

It is hard to determine what your problem is, since you appear to be confused about basic operations of the language and programming in general. What did you use to learn Common Lisp from? Practical Common Lisp is a good free book. For example: input into the current file A file is a sequence of by...
by nerobot
Thu May 13, 2010 3:40 am
Forum: Common Lisp
Topic: How to include a file
Replies: 10
Views: 9184

Re: How to include a file

Unfortunately, dolist will also return a NIL, which the function couldn't handle.
by nerobot
Wed May 12, 2010 9:00 am
Forum: Common Lisp
Topic: How to include a file
Replies: 10
Views: 9184

Re: How to include a file

The reason I needed to do this was because I had a file containing a load of lists that needed to input into the current file so that they could then be used for calling a function. But I instead found a way of placing the lists (which spanned several lines) into a list of lists. However, how still ...
by nerobot
Tue May 11, 2010 3:39 am
Forum: Common Lisp
Topic: How to include a file
Replies: 10
Views: 9184

How to include a file

Hi, Sorry if this has already been asked somewhere else, but I was unable to find a solution anywhere. Is there a way to include a file, containing lisp code, into the current file. To explain a bit more, I need something that would simply place the whole contents of the include file, as is, into th...