>>>>> "BS" == Benjamin Stuhl <[EMAIL PROTECTED]> writes:

BS> variables
BS> "know" how to perform ops upon themselves. An operation is 
BS> separate from the data it operates on. Therefore, I propose
BS> the following vtbl scheme, with two goals:

The point is to avoid the switches. There is no need for a type
flag, in the normal high speed operation. The operator that's
in the right place at the right time gets called.

BS> opcodes. Every op checks to see if it is overloaded, and if
BS> it is, calls that. Some ops don't need to (ie, vec() can
BS> just do a set_string and add an OVERLOAD for the bitwise
BS> ops).

But that's against the point. Nothing has to check. The only
operation that is called is the correct one.

<chaim>
-- 
Chaim Frenkel                                        Nonlinear Knowledge, Inc.
[EMAIL PROTECTED]                                               +1-718-236-0183

Reply via email to