Re: New 'GObject' as base for GtkObject?
- From: David Benson <daveb idealab com>
- To: gtk-devel-list redhat com
- cc: kenelson sequoia ece ucdavis edu
- Subject: Re: New 'GObject' as base for GtkObject?
- Date: Fri, 10 Dec 1999 10:21:24 -0800 (PST)
> In effect this is the opposite of Qt. In Qt the vfunc is provided
> by the language and then calls the signal from the vfunc. This allows
> you the freedom to chose to call the signal or not, and to chose
> the order of calling without all those flags.
But the "vfunc" in gtk+ is *also* provided by the language,
in the form of a function pointer in the class object.
Internally there is no problem calling these functions directly...
indeed derivers *must* do this to chain...
So I don't really see why for once the c++ camp wants to make
things more verbose and less automatic.
Furthermore it takes away a convenient invariant: if you connect a handler
to a signal, then emit the signal, the handler will be invoked.
Unintuitive I think.
Dave
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]