[Kde-bindings] Qyoto TODO

Arno Rehn arno at arnorehn.de
Fri May 26 16:55:16 UTC 2006


Am Freitag, 26. Mai 2006 18:46 schrieb Paolo Capriotti:
> On 5/26/06, Arno Rehn <kde-bindings at arnorehn.de> wrote:
> > I've just done some of the parts in the TODO, but first there is a
> > problem with the new way to set up Q_EMIT:
> > In the line 'Q_EMIT = (IQWidgetSignals) realProxy.GetTransparentProxy();'
> > there is a cast to 'IQWidgetSignals' from the 'standard' proxy. If you
> > want everything in the Dummy-constructor, this cast has to be dynamic
> > because we get the type of the interface at runtime. But I don't know,
> > whether it is possible in C# to cast to another type only with the
> > inforamtion of a System.Type.
>
> This thought as occurred to me, too, but examining it more carefully,
> I came to the conclusion that casting has only to do with variables,
> and not with objects. Runtime casting simply has no meaning, because
> casting doesn't change the object, but only its type as known to the
> compiler.
> Indeed, since Q_EMIT is of type object in QObject, no casting is needed at
> all.

I came across this thought as well, but I thought, there has to be a reason 
why Richard did all this casting and so I sticked with it ;)

-- 
MfG
Arno Rehn
arno at arnorehn.de



More information about the Kde-bindings mailing list