Re: [Lispweb] tbnl: what package?

Edi Weitz <[email protected]> Fri, 10 Feb 2006 13:03:18 +0100
Newsgroups gmane.lisp.lib.tbnl.general,gmane.lisp.web
Message-ID <[email protected]>
[This is probably better asked on the TBNL mailing list.]

On Fri, 10 Feb 2006 21:15:19 +1000, Igor Plekhov <[email protected]> wrote:

> In TBNL some functions are created to handle incoming requests.

Functions are created?  You're talking about your own handlers or
something else?

> What package are they executed in?  I.e. what package *PACKAGE* is
> bound to?  How can I control it?

In your own functions you can rebind *PACKAGE* to your liking.

  (let ((*package* (my-function)))
    ;; do something
    )

For existing TBNL functions the package shouldn't matter with the
exception of READ-FROM-STRING* the behaviour of which is documented:

  <http://weitz.de/tbnl/#read-from-string*>

Does that answer your question or am I misunderstanding?