Since 5/5/2012 1:04:42 AM, alan8762 has written 7 articles and participated in 471 conversations. alan8762 signature: alan8762
alan8762's articles:
Items(7) /1
Does ANSI Common Lisp have pattern matching?5729 (5/4/2007 9:55:09 PM) comp.lang.lisp Previously I've accepted the conventional wisdom that ANSI Common Lisp does NOT have pattern matching. It doesn't strike me as an important question; there are pattern matching macros out there if I need them. ... Alan
Is this a good use for restart-bind?328 (3/31/2006 12:01:54 PM) comp.lang.lisp ;;;; Using restart-bind to offer explanations for errors ;; Basic example: Let us define a version of member ;; that signals an error if it cannot find the item in then list. (defun known-member (item list) ... Alan
Style questions2651 (10/7/2005 4:04:45 PM) comp.lang.lisp Consider finding the winner of a race (defun winner (list-of-runners-and-their-times) (reduce (lambda (x y) (if ( (FRED 201) Is the variable name `(runner time)' 1) a good use of a multiple escape to ... Alan
Does my macro create C style pointers?727 (9/21/2004 8:54:40 PM) comp.lang.lisp In C you can pass the address of a variable to a function, allowing the function to update the value of the variable. CL's lexical variables don't permit this. If you are "old school" then you make free use of... Alan
CLX - size limits in xlib:put-raw-image039 (2/9/2004 5:54:21 PM) comp.lang.lisp I've nearly got put-raw-image working on my hardware, using true colour and 24 bits per pixel If the number of columns is a multiple of 4 there is no problem. Otherwise the number of bytes in each line has to ... Alan
handler-case versus handler-bind940 (1/22/2004 11:47:43 AM) comp.lang.lisp I'm trying to learn the CL condition system. I particularly wanted to follow the thread on Newtons method. I found the condition stuff baffling. I couldn't see were the error was thrown from. I'm been working... Alan
Nested case statements3626 (1/15/2004 11:13:58 AM) comp.lang.lisp Background ---------- There are various autoformat tools for composing HTML. They transform a "convenience language" into HTML. An example of what they do is transforming "That's /really/ cool :->" to "That's r... Alan
Remove-common function in Lisp1022 (4/9/2008 11:28:20 PM) comp.lang.lisp I am trying to implement a function which will remove the common items in two lists and if there're no common items, it'll return the original list. Here's the code that I have written but it's not not returni... rahul.mallo(11)
macrolet like flet1824 (4/13/2008 10:38:35 AM) comp.lang.lisp I read in Paul Graham's Ansi Common Lisp that MACROLET behaves (in analogy) somewhat like FLET in the sense that the local macros may not call one another. But what if the desired behavior were more like LABELS... rocco.rossi(103)
The empty list and the end of a list3021 (4/19/2008 7:38:06 AM) comp.lang.lisp At page 124 of "Common Lisp An Interactive Approach" there is an exercise where it is requested to write the function FLATTEN that takes a list (tree) as input and returns a list of all atoms. It is also reques... someone7026(172)
A question (confusion) about closure2339 (5/2/2008 8:31:18 AM) comp.lang.lisp Hi, I have a confusion regarding closure and its definition. As per Paul Graham: When a function refers to a variable defined outside it, it=92s called a free variable. A function that refers to free lexical ... samikc(2)
define-modify-macro #2526 (5/10/2008 10:03:24 AM) comp.lang.lisp I was just reading the chapter on macros in Paul Graham's ANSI Common Lisp, and I came across the part regarding define-modify-macro. It explains why a custom definition of incf like the following is no good: ... rocco.rossi(103)
walk through list and add all n'th item1628 (5/15/2008 10:03:49 PM) comp.lang.lisp I'm just wondering if there is a lispier way to scan once through a list and add each n'th item with n+constant. Like kind of apply a list through a vector.. In my approach i just used the loop macro: (defpara... google.bo(21)
The "do" macro1026 (6/10/2008 4:53:11 PM) comp.lang.lisp I wanted to ask how I can create a macro that is equivalent to "do" but allows me to use multiple end tests. For example, I want to be able to type something like this: (do ((x 2 (+ x 5)) (y 3 (+ y 5))) (... irdaqramo(3)
One reason Lisp hasn't caught on: the name5492 (6/18/2008 9:16:24 PM) comp.lang.lisp Like it or not, in marketing , the first thing that matters is the name of the programming language. Just ask the marketers at Sun, or Matz. Those were good names. Whoever gave Lisp it's name, I don't think pe... irishhacker(41)