Newsgroups: comp.lang.lisp
From: "Andreas Thiele" <nospam6...@nospam.com>
Date: Mon, 31 Jan 2005 11:42:34 +0100
Local: Mon, Jan 31 2005 5:42 am
Subject: Re: Beginner question
"Yoel Jacobsen" <y...@emet.co.il> schrieb im Newsbeitrag
news:ctkt7f$ipm$1@news2.netvision.net.il... > I'm experimenting CL by attempting to write some basic programs. Yoel, > I'm trying to write an /etc/passwd to LDIF converter and I'm stuck - I > (require 'split-sequence) > (defmacro list-to-plist (plist pos-list id-list field-list) > (defun pline-to-plist (line) > (format t "~S~%" (pline-to-plist > I tried to use a macro to shorten the following pattern: > Now, I get diffetent errors: > Where did I wrong? you should use (macroexpand '(list-to-plist ...)) to see what your macro Let me suggest a typical lisp idiom to solve your problem: (defun pline-to-plist (x) Another more verbose iterative solution might be easier to read: (defun pline-to-plist2 (x) Andreas You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
| ||||||||||||||