[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-multimedia
Subject:    Re: Remote type checking working now
From:       Stefan Westerfeld <stefan () space ! twc ! de>
Date:       2000-05-26 14:46:31
[Download RAW message or body]

   Hi!

On Thu, May 25, 2000 at 05:13:17PM +0100, Nicolas Brodu wrote:
> And so is remote dynamic casting.
> 
> [...]
> 
> I put it on http://nicolas.brodu.free.fr/arts.tar.bz2, so you can cross-check
> it.

Cool. It looks good, so if you want to commit it, go ahead. You could
consider using this (instead of a per-object-individual-implementation):

void Object_skel::_isCompatibleWith(const std::string& interfacename)
{
	return _cast(interfacename) != 0;
}

This would reduce the amount of generated code, as derived objects would not
need to redefine the _isCompatibleWith method. Also, I noticed that
inside Object_skel, you check interfacename for "Object" instead of
"Arts::Object", which is probably wrong.

   Cu... Stefan
-- 
  -* Stefan Westerfeld, stefan@space.twc.de (PGP!), Hamburg/Germany
     KDE Developer, project infos at http://space.twc.de/~stefan/kde *-         
_______________________________________________
Kde-multimedia mailing list
Kde-multimedia@master.kde.org
http://master.kde.org/mailman/listinfo/kde-multimedia

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic