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

List:       pykde
Subject:    Re: [PyKDE] sip wrapping QCanvasItem's rtti()
From:       Frederick Polgardy Jr <polgardy () bodacion ! com>
Date:       2003-01-14 22:45:57
[Download RAW message or body]

On Tuesday 14 January 2003 04:41 pm, Anthony Heading wrote:
> So this appears to be forcing a call to the base class version of the
> function, which seems rather inappropriate for an rtti() function...
>
> Should this not read:
>                 res = (QCanvasItem*)sipCpp -> rtti();

No it doesn't.  That's the whole point of a virtual function call.  rtti() 
is invoked on the actual object, it's not determined by the ptr class.

-- 
F R E D E R I C K   P O L G A R D Y   J R.
Bodacion Technologies
18-3 E Dundee Road - Suite 300 - Barrington, IL 60010
Phone: 847/842.9008 - Fax: 847/842-1731
Web: http://www.bodacion.com

_______________________________________________
PyKDE mailing list    PyKDE@mats.gmd.de
http://mats.gmd.de/mailman/listinfo/pykde
[prev in list] [next in list] [prev in thread] [next in thread] 

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