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

Pupeno pupeno at pupeno.com
Wed May 18 03:56:13 UTC 2005


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

The section where each wiki-word is turned into a link (an action-link) on the 
wiki example, it says:
(dolist (part (cl-ppcre:split scanner
                                  (contents (find-wiki-page (page-name page)))
                                  :with-registers-p t))
      (if (cl-ppcre:scan scanner part)
          (let ((part part)) ; At this point, part contains the page linking 
to.
            (<ucw:a :action (view-page page part)
              (<:as-html part)))
          (<:as-is part))))

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.
Thank you.
- -- 
Pupeno: pupeno at pupeno.com - http://pupeno.com
Reading Science Fiction ? http://sfreaders.com.ar
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (GNU/Linux)

iD8DBQFCirzgfW48a9PWGkURApuIAJ9OsaKG05iCMchzCsdwJ5mBeu4U5wCfZHQ2
rX+Y07esyni+KLIVjoC1zBE=
=Nsdd
-----END PGP SIGNATURE-----



More information about the bese-devel mailing list