>>>>> "DS" == Dan Sugalski <[EMAIL PROTECTED]> writes:

  DS> It's basically a method of indirection. You have a table of
  DS> functions--whate each entry in the table does is fixed, but how it
  DS> does it depends on which table you use.

  DS>   foo = (some_pointer->vtable[GET_INT])(some_pointer);

  DS> This way you can have tailored functions to do just what you
  DS> need--no need to check to see if you need to upgrade, and the
  DS> common functions will hopefully be small and in the cache pretty
  DS> much constantly.

pretty much just what i thought, a dispatch table which can be replaced
with variants. i just never heard the term vtable before this but i have
had plenty of experience with dispatch tables.

uri

-- 
Uri Guttman  ---------  [EMAIL PROTECTED]  ----------  http://www.sysarch.com
SYStems ARCHitecture, Software Engineering, Perl, Internet, UNIX Consulting
The Perl Books Page  -----------  http://www.sysarch.com/cgi-bin/perl_books
The Best Search Engine on the Net  ----------  http://www.northernlight.com

Reply via email to