Gmail Календар Документи Фотознімки Веб Ще »
Групи, які ви переглядали нещодавно | Довідка | Увійти
Головна сторінка Груп Google
Допис з розмови tagbody vs. defun
Група, до якої ви додаєте допис, - група Usenet. Відтак, будь-хто в Інтернеті бачитиме вашу електронну адресу.
Вашу відповідь не було надіслано.
Ваш допис надіслано
 
Від:
Кому:
Копія:
Продолжить:
Додати копію: | Додати продовження: | Редагувати тему
Тема:
Підтвердження:
З метою підтвердження введіть символи, наведені на зображенні нижче, або числа, які чуєте, натиснувши значок доступу. Прослухайте і введіть цифри, що чуєте
 
Rob Warnock  
Переглянути профіль   Перекласти вказаною мовою: Перекладено (переглянути оригінал)
 Більше налаштувань 31 Жов 2009, 14:07
Групи новин: comp.lang.lisp
Від: r...@rpw3.org (Rob Warnock)
Дата: Sat, 31 Oct 2009 07:07:15 -0500
Місцевий час: Сб 31 Жов 2009 14:07
Тема: Re: tagbody vs. defun
Madhu <enom...@meer.net> wrote:

+---------------
| * Rob Warnock wrote:
| | Thomas A. Russ <t...@sevak.isi.edu> wrote:
| | +---------------
| | | You mean like
| | |  (format t "one ~a~%~:*two ~a~%~:*three ~a~%" x)
| | +---------------
| |
| | *ROTFLMAO!!* I immediately thought of Lily Tomlin's character Ernestine:
| |
| |     (let* ((x (format nil "r~a-~:*d~a..." "ingy")))
| |       (format t "one ~a~%~:*two ~a~%~:*three ~a~%" x))
|
| I missed the cultural reference, so I do not understand what you are
| trying to demonstrate here...
+---------------

See:

    http://en.wikipedia.org/wiki/Lily_Tomlin
    ...
    Career
    In 1969, Tomlin joined the sketch comedy show Laugh-In. Some
    characters from the show have been associated with her throughout
    her career, including the wisecracking, snorting telephone
    operator, Ernestine; ...

Ernestine was known for placing telephone calls to victims\\\\\ customers
and, while waiting for the call to be answeredr, saying the output from
the above FORMAT out loud, to wit:

    one ringy-dingy...
    two ringy-dingy...
    three ringy-dingy...

+---------------
| (which also has advantage of avoiding a style warning for LET*!)
+---------------

Sorry 'bout that. An earlier version looked like this:

    (let* ((s "ingy")
           (x (format nil "r~a-d~a..." s s)))
      (format t "one ~a~%~:*two ~a~%~:*three ~a~%" x))

but I realized I could use the backup trick to avoid duplicating
the string arg and so got rid of the temporary variable S, but then
didn't change the LET* to a LET. Happens a lot in exploratory code.

[Note that none of CMUCL, CLISP, nor SBCL (at least, not the versions to
which I have access) give the annoying, overprotective "style warning" for
a LET* with only one binding that your implementation apparently does.]

-Rob

-----
Rob Warnock                     <r...@rpw3.org>
627 26th Avenue                 <URL:http://rpw3.org/>
San Mateo, CA 94403             (650)572-2607


    Переслати  
Ви мусите увійти перед публікацією повідомлень.
Аби надіслати допис, будь ласка, спочатку приєднайтеся до цієї групи.
Будь ласка, поновіть своє прізвисько на сторінці налаштування передплати перед тим, як надіслати свій допис.
У вас немає права надсилання дописів до цієї групи.

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