Search found 209 matches
- Mon May 31, 2010 4:14 am
- Forum: Common Lisp
- Topic: problrm with a function
- Replies: 2
- Views: 3140
Re: problrm with a function
SETQ and SETF shouldn't define variables, they're for changing them. Afaik CL does make special variables for you. Variables are defined from various forms like LET, DEFUN, destructuring-bind etcetera. Special variables are created with DEFVAR and defparameter, in the variables section of PCL you ca...
- Sun May 30, 2010 5:35 pm
- Forum: Common Lisp
- Topic: How to read a column as a list?
- Replies: 1
- Views: 2691
Re: How to read a column as a list?
Sounds a bit like homework. One simple and crude way is to use ( read-line stream nil :eof) until :eof, and then for each wrap the resulting string in parenthesis characters, and then the third of read-from-string is the one you want of each of those. The bolded are functions.other too) You can use ...
- Fri May 28, 2010 6:58 am
- Forum: Common Lisp
- Topic: Suggestion to improve asdf
- Replies: 5
- Views: 5021
Re: Suggestion to improve asdf
Mistakes like these are made rather often, looking at Juan Garcias analysis . There is no reason to allow the possiblity of the mistake to exist, if the .asd file were datalike and people just made additional form elements. Further if you look for instance at Arnesi there, there is no way to determi...
- Wed May 26, 2010 7:54 am
- Forum: Common Lisp
- Topic: Vector Calculations...
- Replies: 1
- Views: 2419
Re: Vector Calculations...
I asked this question before. There are many libraries doing some stuff with 'numerical'vectors, but imo they're all too involved. I don't really like the class-based one (edit: i put)there much either. I wrote a little 'vanilla' vector package myself based on VECTOR. Looks like it didn't autodoc th...
- Tue May 25, 2010 4:56 am
- Forum: Common Lisp
- Topic: Suggestion to improve asdf
- Replies: 5
- Views: 5021
Re: Suggestion to improve asdf
@gugamilare first paragraph of the link, methods are a problem. If the dependency file depends on more things than the dependency system, it is broken. Further, defining functions in the file determining the dependencies conflates extending the dependency capabilities and just adding a system. If yo...
- Mon May 24, 2010 4:44 pm
- Forum: Common Lisp
- Topic: Suggestion to improve asdf
- Replies: 5
- Views: 5021
Suggestion to improve asdf
I wrote a blogpost about it.(edit: please read the link) The format i suggest is to put into a file with nothing else in it: (def-system system-name data*) data::= (:depends-on other-system*) | (:parts part*) | extension-claimed-data*) part::= (part-name data*) | part-name system-name is a symbol gi...
- Wed May 19, 2010 2:32 am
- Forum: The Lounge
- Topic: functions and variable?
- Replies: 7
- Views: 13871
Re: functions and variable?
I made something like that way before.. Here it is . Although i would do that wholly differently now, treating the :=/= operator specially can save a bunch of parenthesis and (corresponding)nestedness, so i think lispers should make some kind of standard way of doing it. Note that the nestedness can...
- Wed May 19, 2010 1:43 am
- Forum: Common Lisp
- Topic: The Horrible State of the Cliki
- Replies: 5
- Views: 4848
Re: The Horrible State of the Cliki
I added a link to better cliki pages from Lisp-Tk. Maybe cliki pages need discussion bits? People sometimes have something to say, but don't feel the article page is appropriate. I was also thinking of listing CL functions/improvement points in there aswel, with a section 'this could be better' at t...
- Wed May 19, 2010 1:10 am
- Forum: Common Lisp
- Topic: Only in Lisp
- Replies: 43
- Views: 41909
Re: Only in Lisp
For some reason Python doesn't allow the conditionals to be returned either.. if ... : ... else ... must be toplevel because the indentation requirement at least.
Seems to me like a completely arbitrary restriction. Even C has ... ? ... : ...
Seems to me like a completely arbitrary restriction. Even C has ... ? ... : ...
- Tue May 18, 2010 12:23 pm
- Forum: Common Lisp
- Topic: Only in Lisp
- Replies: 43
- Views: 41909
Re: Only in Lisp
This page has some languages in lisp. Would be awesome if as asdf gets fixed, then, with an extension, we probably could add Python code and other languages just by adding the files to the defsystem, if this C/C++ library thing gets fixed.