sam th --- [EMAIL PROTECTED] --- http://www.abisource.com/~sam/
OpenPGP Key: CABD33FC --- http://samth.dyndns.org/key
DeCSS: http://samth.dyndns.org/decss



>From [EMAIL PROTECTED]  Tue May 29 07:28:03 2001
Return-Path: <[EMAIL PROTECTED]>
Delivered-To: [EMAIL PROTECTED]
Received: from missioncriticallinux.com (mail.missioncriticallinux.com [208.51.139.18])
        by parsons.abisource.com (Postfix) with ESMTP id 7162A11C042
        for <[EMAIL PROTECTED]>; Tue, 29 May 2001 07:27:57 -0500 (CDT)
Received: from mclinux.com (localhost [127.0.0.1])
        by missioncriticallinux.com (8.9.3/8.9.3) with ESMTP id IAA05620
        for <[EMAIL PROTECTED]>; Tue, 29 May 2001 08:27:36 -0400
Message-Id: <[EMAIL PROTECTED]>
X-Mailer: exmh version 2.3 01/15/2001 with nmh-1.0.3
To: "AbiWord-dev" <[EMAIL PROTECTED]>
Subject: Re: UT_Pair car and cdr 
In-Reply-To: Message from "Mike Nordell" <[EMAIL PROTECTED]> 
   of "Sat, 26 May 2001 20:56:25 +0200." <15e701c0e615$9478a490$0401a8c0@putte2k> 
References: <[EMAIL PROTECTED]>  
 <15e701c0e615$9478a490$0401a8c0@putte2k>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Date: Tue, 29 May 2001 08:27:36 -0400
From: Jeffry Smith <[EMAIL PROTECTED]>

"Mike Nordell" said:
>Patrick Lam wrote:
>>
>> On Sat, 26 May 2001, Mike Nordell wrote:
>>
>> > Could someone explain these TLAs?
>>
>> They're the standard pair accessors in LISP-like languages, where you
>> create a pair with cons:
>[...]
>> Car stands for "contents of address register" and cdr (pronounced
>> "could-er") stands for "contents of decrement register."'
>
>Thanks for the excellent explanation, but
>
>    Goddamit!
>
>Yes I'm slightly annoyed, writing lisp in C++ is not what I would call
>appropriate.
>
>In C++ we have a standard library which contains a template data type
>std::pair. That one contains two data members named "first" and "second".
>I'm confident Sam didn't know about this when he put it in, but would 
anyone
>mind if I fixed this once the DNS records are set straight again? (I can't
>even get CVS now... :-( ). Should anyone get bored and want to fix it in 
the
>meantime I won't complain.
>

I'll have to look through the Abi code to see if it really is LISP car & cdr, but car 
& cdr are NOT first and second, or head and tail (OK, 1st and head).  LISP is really 
oriented towards list processing (which is what LISP stands for).  car is the first 
element in a list.  cdr is everything after the 1st element, still in a list.  
Example:  given a list (one two three four five),
car list => one
cdr list => (two three four five).

jeff



PGP signature

Reply via email to