Культурный офтопик
 help / color / mirror / Atom feed
From: "Денис Смирнов" <mithraen@altlinux.ru>
To: smoke-room@lists.altlinux.org
Subject: Re: [room] Стоит ли использовать Plone?
Date: Fri, 8 Dec 2006 06:56:26 +0300
Message-ID: <20061208035626.GA4239@localhost.localdomain> (raw)
In-Reply-To: <20061207230022.GV21107@osdn.org.ua>

On Fri, Dec 08, 2006 at 01:00:22AM +0200, Michael Shigorin wrote:
>> Но вот с одним я так и не разобрался -- как писать функуии,
>> которые в качестве аргументов берут другие функции?
MS> Так функция в лиспе отродясь была одним из возможных значений.

В том и фишка что я это знаю. А как этим пользоваться -- не.

 MS> Погуглил для тебя lisp "function as an argument":

MS> http://www.onjava.com/pub/a/onjava/2004/03/24/lisp.html
MS> ("Treating Functions as Data In Lisp")
MS> http://www.cs.cmu.edu/~ggordon/lisp-hints.txt
MS> http://en.wikipedia.org/wiki/Common_Lisp#Functions
MS> Там ещё немного было: http://tinyurl.com/yn6fjo
MS> :)

Спасибо. Долго в этом ковырялся, везде описано как пользоваться такими
функциями, но почти нигде как такие функции писать.

А всего-то для полного счастья мне нехватало понять что в этом случае надо
не выпендриваться, а вдумчиво подумать над текстом, и вспомнить что все
гениальное просто.

http://www.gigamonkeys.com/book/functions.html -- вот тут есть один из
примеров кода, по которому сразу все ясно.

Надо было просто в создаваемой функции писать вместо
(fn param)
работающее:
(funcall fn param)

И сразу все становится супер :)

-- 
С уважением, Денис

http://freesource.info
----------------------------------------------------------------------------
mozilla-based проекты вообще не дружат с подобным способом сборки как rpm.
		-- legion in sisyphus@


  reply	other threads:[~2006-12-08  3:56 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-12-04 11:28 Alexei V. Mezin
2006-12-04 15:20 ` Michael Shigorin
2006-12-04 16:13   ` Alexei V. Mezin
2006-12-04 16:58     ` Maxim Bodyansky
2006-12-04 15:48 ` Денис Смирнов
2006-12-04 16:21   ` Alexei V. Mezin
2006-12-04 21:55     ` Michael Shigorin
2006-12-06 23:43     ` Денис Смирнов
2006-12-07  8:25       ` Maxim Tyurin
2006-12-07 21:22         ` Денис Смирнов
2006-12-07 23:00           ` Michael Shigorin
2006-12-08  3:56             ` Денис Смирнов [this message]
2006-12-08  7:36             ` Денис Смирнов
2006-12-08  9:33           ` Maxim Tyurin
2006-12-04 21:53   ` Michael Shigorin
2006-12-05 21:51     ` Aleksey Korotkov
2006-12-06  8:20       ` Michael Shigorin
2006-12-06 23:40     ` Денис Смирнов

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20061208035626.GA4239@localhost.localdomain \
    --to=mithraen@altlinux.ru \
    --cc=smoke-room@lists.altlinux.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

Культурный офтопик

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/smoke-room/0 smoke-room/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 smoke-room smoke-room/ http://lore.altlinux.org/smoke-room \
		smoke-room@lists.altlinux.org smoke-room@lists.altlinux.ru smoke-room@lists.altlinux.com smoke-room@altlinux.ru smoke-room@altlinux.org smoke-room@altlinux.com
	public-inbox-index smoke-room

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.smoke-room


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git