Re: [Clg-devel] Some thoughts
Brought to you by:
espen
From: Christophe R. <cs...@ca...> - 2001-11-20 16:39:01
|
On Tue, Nov 20, 2001 at 10:38:33AM -0500, Bob Rogers wrote: > > Also, I think that they probably ought to be methods on > shared-initialize instead, so that reinitialize-instance can take > advantage of :child processing, say. > > That may well be, though that assumes that reinitialization would even > work for these classes. But I haven't actually played with clg for a > year, at least, so I won't venture an opinion. Let me just briefly summarize why I think reinitialize-instance should be an option: Let's say I have a window, and I want a quit button (and some other buttons). What I want to do is then (let ((window (make-instance 'window))) (apply #'reinitialize-instance window :child (make-instance 'button :signal (list 'clicked #'widget-destroy :object window)))) But at present I can't do that, because :child processing is only in initialize-instance of containers, not shared-initialize. I hope that my intent (and why I can't achieve it currently -- I'd have to use box-pack explicitly everywhere) is relatively clear. As I say, more details (I hope) to follow when I finish this translation exercise. Cheers, Christophe -- Jesus College, Cambridge, CB5 8BL +44 1223 510 299 http://www-jcsu.jesus.cam.ac.uk/~csr21/ (defun pling-dollar (str schar arg) (first (last +))) (make-dispatch-macro-character #\! t) (set-dispatch-macro-character #\! #\$ #'pling-dollar) |