[Mono-list] Bug found: calling virtual func via delegate

Daniel Stodden stodden@cs.tum.edu
05 Nov 2002 16:51:44 +0100


On Mon, 2002-10-28 at 22:48, J. Perkins wrote:
> The attached code illustrates the problem. When compiled with csc, it
> will display "DerivedClass::SomeFunc". When compiled with msc, it
> displays "BaseClass::SomeFunc".
> 
> I didn't see this in bugzilla...is it a known issue?

dunno.

> 
> 	public BaseClass()
> 	{
> 		m_callback = new CallbackDelegate(SomeFunc);

yiiiep!
should result in a ldvirtftn before the constructor.
mcs sticks with ldftn.

emit() in current cvs looks as if it cares for virtfns, though.
has this already been fixed?? will look into this, if not.

if it has not -- find/file a bug, please.

thank you,
daniel


-- 
___________________________________________________________________________
 mailto:stodden@in.tum.de