Re: A cute reader hack
- From: Marcin 'Qrczak' Kowalczyk <qrczak@xxxxxxxxxx>
- Date: Tue, 02 May 2006 21:29:25 +0200
Pascal Costanza <pc@xxxxxxxxx> writes:
No, but you can pass the following instead:
(lambda (&rest args)
(declare (dynamic-extent args))
(copy-list args))
What do you want to use this for?
You seem to have suggested to declare as dynamic-extent the &rest
parameter which is passed down to another function, irrespective
of how the other function is written (if "idiom" is understood as
"any code matching this pattern").
I was just worried that this optimization requires the knowledge about
the other function. In particular it would be unsafe with the _func
reader syntax that this thread is about, because the function might
return its original parameter list as a part of its result.
--
__("< Marcin Kowalczyk
\__/ qrczak@xxxxxxxxxx
^^ http://qrnik.knm.org.pl/~qrczak/
.
- Follow-Ups:
- Re: A cute reader hack
- From: Bill Atkins
- Re: A cute reader hack
- References:
- A cute reader hack
- From: Ron Garret
- Re: A cute reader hack
- From: Pascal Costanza
- Re: A cute reader hack
- From: Marcin 'Qrczak' Kowalczyk
- Re: A cute reader hack
- From: Pascal Costanza
- A cute reader hack
- Prev by Date: Re: Need lisp help!!!
- Next by Date: Re: Need lisp help!!!
- Previous by thread: Re: A cute reader hack
- Next by thread: Re: A cute reader hack
- Index(es):
Relevant Pages
|