Kernel 0.1, Win [djg7]

Gary D. Duzan duzan@udel.edu
Wed, 24 Mar 93 07:34:33 -0500


In Message <2bb00178.davgar@davgar.UUCP> ,
   david%davgar@uunet.uu.net wrote:

=>This type of code should almost never be necessary.  The correct way
=>to do this is something like a C++ Virtual Dispatch Table.  In other
=>words, just go straight to the right function.

   Right, so we have one of those wonderful arrays of pointers to
functions that are so cute in C. :-)  void (*foo[])(va_alist);
Of course, there should probably be an entry-point function to
process incoming calls.

=>I think I would rather see a set of numbers predefined for all objects
=>(though objects need not respond to them), and other numbers be
=>allocated at run-time, on a system-wide basis.  I will admit that this
=>will require remapping some numbers in a networking environment, but I
=>think we can live with this.  The name to number translation can also
=>be reversible, which can simplify writing debuggers and similar
=>functions.

   I'd prefer to have a global string space than an integer space and
map the strings to integers at runtime.

                                        Gary Duzan
                                        Time  Lord
                                    Third Regeneration
                         Humble Practitioner of the Computer Arts