2012/9/1, Mark Cox <
mark...@gmail.com>:
> Would you consider exporting it from the EQL package? I consider the pattern
> useful, but I am new to EQL.
it seems that I didn't think hard enough -- I would like to extend
this even more:
After testing a little, I found that it would be useful to use these
Lisp objects (encapsulating a Qt object) everywhere a Qt object is
expected (e.g. as arguments to QFUN, with QSET, QCONNECT etc.).
Since its use would not be limited to QFUN, I would like to use
another name, like:
(defgeneric the-qt-object (object)
:documentation "Return the QT-OBJECT to be used whenever OBJECT is
used as argument to any EQL function."))
> I would also consider a more user friendly error message if an object cannot
> be used. Perhaps,
ok, I will add a better error message.
I never thought about encapsulation/CLOS, because I simply never use
CLOS (my projects are small), but I find your idea very convenient.
Paul