Subject: Re: PROGV question
From: rpw3@rpw3.org (Rob Warnock)
Date: Wed, 20 Jun 2007 07:53:01 -0500
Newsgroups: comp.lang.lisp
Message-ID: <DtSdnQ-Hk8-wvuTbnZ2dnUVZ_s_inZ2d@speakeasy.net>
Chaitanya Gupta  <mail@chaitanyagupta.com> wrote:
+---------------
| (On a side note: I wanted to do this for ACL, because I didn't think it
| had something like *process-inherited-bindings*. But going throught the
| docs again, I found that it does give the initial bindings for a process
| using mp:process-initial-bindings (provided you create them using
| process-run-function's binding mechanism). So I won't really be using
| this now, but it might be useful in SBCL, which AFAIK doesn't give you
| the initial bindings for a process.)
+---------------

If they haven't changed SBCL's MP package *too* much from what
they inherited from CMUCL, there should be an :INITIAL-BINDINGS
keyword in the MP:MAKE-PROCESS function:

  :INITIAL-BINDINGS
        An alist of initial special bindings for the process.  At
        startup the new process has a fresh set of special bindings
        with a default binding of *package* setup to the CL-USER
        package.  INITIAL-BINDINGS specifies additional bindings for
        the process.  The cdr of each alist element is evaluated in
        the fresh dynamic environment and then bound to the car of the
        element.


-Rob

-----
Rob Warnock			<rpw3@rpw3.org>
627 26th Avenue			<URL:http://rpw3.org/>
San Mateo, CA 94403		(650)572-2607