Jon Smirl wrote:
--- José Fonseca <[EMAIL PROTECTED]>
wrote:

Yes, this works as you say _if_ the method isn't
virtual, or at least
the exact type of the class is known at compile
time, i.e., it's not an
abstract Context *, but actually a non-abstract
RadeonContext *.


It works for virtual methods and abstract classes.
Check out a description of how C++ VTables work. This
is a very integral part of how COM/XPCOM work too.


I didn't really understand where this was coming from. I think it might relate to the earlier misunderstanding that the GL dispatch tables provide a 'ctx' argument (which might be a C++ object). This isn't true -- dispatch doesn't add any new arguments, so this trick probably doesn't help.


Keith




------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ Dri-devel mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/dri-devel

Reply via email to