Веб Зображення Новини Групи Блоги Перекладач Gmail Ще »
Групи, які ви переглядали нещодавно | Довідка | Увійти
Головна сторінка Груп Google
Допис з розмови Newby(ish)

Переглянути розібране Показувати лише текст повідомлення

Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!colt.net!diablo.theplanet.net!news.indigo.ie!feeder2.news.heanet.ie!server5.netnews.ja.net!server6.netnews.ja.net!newsfeed.ed.ac.uk!devon.inf.ed.ac.uk!s9905774
From: Gregory Rickeard <s9905...@sms.ed.ac.uk>
Newsgroups: comp.lang.lisp
Subject: Re: Newby(ish)
Date: Tue, 15 Jul 2003 23:43:48 +0100
Organization: Edinburgh University
Lines: 31
Message-ID: <Pine.LNX.4.44.0307152340040.17334-100000@devon.inf.ed.ac.uk>
References: <Pine.LNX.4.44.0306271132520.26288-100000@avenger.inf.ed.ac.uk>
 <7k774q1e.fsf@ccs.neu.edu>
NNTP-Posting-Host: devon.inf.ed.ac.uk
Mime-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
X-Trace: scotsman.ed.ac.uk 1058309029 17376 129.215.155.81 (15 Jul 2003 22:43:49 GMT)
X-Complaints-To: usenet@scotsman.ed.ac.uk
NNTP-Posting-Date: Tue, 15 Jul 2003 22:43:49 +0000 (UTC)
X-X-Sender: s9905...@devon.inf.ed.ac.uk
In-Reply-To: <7k774q1e.fsf@ccs.neu.edu>




On 27 Jun 2003, Joe Marshall wrote:

>
> Instead of RPLACA and RPLACD, you should use SETF
>
I was under the impression thet using SETF on elements of a list
would not alter the origional structure...

> (setf (car args) subst)  instead of   (rplaca args subst)
>
> and
>
> (setf (cadr args) subst) instead of (rplacd args (list subst))
>
This did not work when I tried the substitution, however
(setf (second args) subst) worked fine...

>
> You should consider representing the nodes in your tree as defstructs.
>

This unfortunataly did not solve the problem - looks like i will have to
re-implement the program using structures.

Thanks anyway.

Greg


Створити групу - Групи Google - Домашня сторінка Google - Правила користування послугою - Заява про конфіденційність і нерозголошення інформації
©2009 Google