From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Katalin Sinkov Newsgroups: gmane.emacs.help Subject: Re: lisp style question Date: Sun, 5 Dec 2010 10:22:31 -0800 (PST) Organization: http://groups.google.com Message-ID: References: <82vd3ceexc.fsf@shevek.netfonds.no> <6e2fe51c-ff4c-429f-b221-a3cbe23e958f@n2g2000pre.googlegroups.com> <87zkslgk3c.fsf@mail.geddis.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1291950480 23904 80.91.229.12 (10 Dec 2010 03:08:00 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 10 Dec 2010 03:08:00 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Dec 10 04:07:55 2010 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1PQtKt-00086C-Ht for geh-help-gnu-emacs@m.gmane.org; Fri, 10 Dec 2010 04:07:55 +0100 Original-Received: from localhost ([127.0.0.1]:45600 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PQtKs-0003eU-Nj for geh-help-gnu-emacs@m.gmane.org; Thu, 09 Dec 2010 22:07:54 -0500 Original-Path: usenet.stanford.edu!postnews.google.com!d8g2000yqf.googlegroups.com!not-for-mail Original-Newsgroups: comp.lang.lisp,comp.emacs,gnu.emacs.help Original-Lines: 50 Original-NNTP-Posting-Host: 75.31.71.74 Original-X-Trace: posting.google.com 1291573351 31813 127.0.0.1 (5 Dec 2010 18:22:31 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Sun, 5 Dec 2010 18:22:31 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: d8g2000yqf.googlegroups.com; posting-host=75.31.71.74; posting-account=q8u0hAoAAAA7uZRsDFj29PQdwm_l8nyT User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; {83B3ACED-AC9F-2058-FD69-DBCDCD722B97}; (R1 1.5)),gzip(gfe) Original-Xref: usenet.stanford.edu comp.lang.lisp:296225 comp.emacs:100917 gnu.emacs.help:182880 X-Mailman-Approved-At: Thu, 09 Dec 2010 20:08:59 -0500 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:77248 Archived-At: On Dec 4, 4:05 pm, Don Geddis wrote: > Katalin Sinkov wrote on Thu, 2 Dec 2010 : > > > what is "setf" and how to write it in terms of the elementary > > functions, car/cdr/cons/quote/cond/atom/eq ? > > Unlike your subject line, this is no longer a "lisp style" question. > That's fine, but before asking "style" questions, you ought to learn > some lisp. Get an introductory tutorial (there are good free ones > online!), try some examples. After you learn a bit of lisp, and can > write simple programs, perhaps then you can come back with some style > questions. OK, I read the papers by McCarthy and the evaluator. > You just don't know lisp. Do you know lisp ? Do you even know how to fork off another thread if that is your issue with the heading ? Also, style cannot be decoupled from skill of language. Even if you learnt all the C, you could not write a C++ style virtual class in it unless you had the skill. The most you would be able to achieve would be methods with function pointers. > Oh, and by the way: the functions your listed are not "the elementary > functions" (lisp has lots of functions, and there is no unique > elementary subset); nor can SETF be written in terms of the ones you > listed. But you have one set provided to you on silver plate to use. Must I provide you with all of them before you will activate your neuron and lift your finger to explain how setf is implemented ? HTH > -- Don > _________________________________________________________________________= __=AD____ > Don Geddis http://don.geddis.org/ d...@gedd= is.org > You see, wire telegraph is a kind of a very, very long cat. You pull his = tail > in New York and his head is meowing in Los Angeles. Do you understand th= is? > And radio operates exactly the same way: you send signals here, they rece= ive > them there. The only difference is that there is no cat. > -- Albert Einstein, when asked to describe radio