Function Hijacking article

Stewart Gordon smjg_1998 at yahoo.com
Thu Oct 18 04:00:35 PDT 2007


"Walter Bright" <newshound1 at digitalmars.com> wrote in message 
news:ff61om$bis$1 at digitalmars.com...
> http://www.digitalmars.com/d/hijack.html

<snip>

"B.vtbl[0] = &B.foo(long);
B.vtbl[1] = &error;"

So the compiler generates an override that throws a runtime error?  Does it 
apply to all overloads, or only where potentially compatible parameter types 
are involved?

Stewart.

-- 
My e-mail address is valid but not my primary mailbox.  Please keep replies 
on the 'group where everybody may benefit. 




More information about the Digitalmars-d-announce mailing list