Hi Henrik,

On Sat, Nov 09, 2013 at 06:45:08PM +0100, Alexander Burger wrote:
> > (push *Admin '+Admin)
> ...
> > (setq *Admin (db 'id '+Admin 3))
> > (hi> *Admin)
> > 
> > It doesn't work, but maybe it does if some configuration is set up that I
> > don't know about?
> 
> The above seems correct, and works here (i.e. prints "Hi admin.").

Ah, now I know what your problem is. The 'push' above was probably not
committed, right? So the second 'db' call returned the old object
(without the additional class).

So my recommendation

>    (set *Admin '(+Admin))

should actually be

   (dbSync)
   (set> *Admin '(+Admin))
   (commit 'upd)

or, shorter

   (set!> *Admin '(+Admin))

♪♫ Alex
-- 
UNSUBSCRIBE: mailto:picolisp@software-lab.de?subject=Unsubscribe

Reply via email to