[elephant-devel] get-instance-by-class etc

Ian Eslick eslick at media.mit.edu
Wed Sep 9 20:06:10 UTC 2009


Sounds like an opportunity for a cute little macro...

(defmacro with-store ((store) &body body)
    `(let ((*store-controller* ,store))
         (declare (special *store-controller*))
         , at 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
> elephant-devel at common-lisp.net
> http://common-lisp.net/mailman/listinfo/elephant-devel





More information about the elephant-devel mailing list