Sounds like an opportunity for a cute little macro...
(defmacro with-store ((store) &body body)
`(let ((*store-controller* ,store))
(declare (special *store-controller*))
,@body))
which is now in the current dev tree.
There is also the with-open-store macro which will open and close the
store around the body
On Sep 8, 2009, at 11:45 PM, Leslie P. Polzer wrote:
> On Tue, Sep 08, 2009 at 08:51:38PM +0100, Tiarnan O'Corrain wrote:
>
>> the get-instance* functions don't take a store-controller argument.
>> What's the recommended way of directing these to the appropriate
>> store
>> where many may be open?
>
> (let ((*store-controller* my-store-controller))
> (get-instance...))
>
> Leslie
>
> _______________________________________________
> elephant-devel site list
> [email protected]
> http://common-lisp.net/mailman/listinfo/elephant-devel
_______________________________________________
elephant-devel site list
[email protected]
http://common-lisp.net/mailman/listinfo/elephant-devel