Re: [lush-devel] ogre bug

Yann LeCun <[email protected]> Thu, 14 Jun 2007 22:25:02 -0400
Newsgroups gmane.lisp.lush.devel
Message-ID <[email protected]>
On Thursday 14 June 2007, Ralf Juengling wrote:
> On Thu, 30 Nov 2006, Yann LeCun wrote:
> > (new window) sets the the value of the symbol "window" to the window
> > just created. In fact, new-window does nothing more than:
> > (setq window (x11-window))
> >
> > Unfortunately, doing this within the scope of an ogre object
> > (your stdbutton) has the effect of overwriting the value of
> > the slot "window" of the object. Boom!
> >
> > The workaround is to simply do: (setq my-window (x11-window))
> > instead of (new-window).
>
> Is there anything wrong with changing new-window so that it does
> (setq :window (x11-window)) instead?


Indeed, that would probably be better.

  -- Yann


-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/