[Bese-devel] Why (let ((part part)) ...) on wiki.lisp ?

Brian Downing bdowning at lavos.net
Wed May 18 05:09:26 UTC 2005


On Wed, May 18, 2005 at 12:56:13AM -0300, Pupeno wrote:
> Why is the (let ((part part))...) there ? What is the effect of asigning part 
> to part ? Why is it needed (if returned, when the action view-page is run, 
> part contains NIL). It seems something like a scope problem, but if someone 
> can enlighten me about it, I'd be thankful.

It's so that you have a fresh lexical binding to wrap up in the :action.
Otherwise DOLIST can choose to SETF part instead of rebinding it, so all
the links could wind up pointing to the same place (as they would all be
closed over the same binding)!

-bcd



More information about the bese-devel mailing list