Chaim Frenkel <[EMAIL PROTECTED]> writes:
>
>Each sub has a unique number.

(A hash of its name)

>
>Each object would then have a compact representation of only the methods
>that are accessible via method call. (Dynamically generated methods,
>would be added at the end of the vtbl.)
>
>There only has to be a single vtbl for all objects. Since all objects
>with the same @ISA would act the same.

i.e. we have an array indexed by the "hash of the name" which tells us 
where to look ...

>
>Does it sound workable?
>
>Hmm, I just thought of some scenerios that could break it.
>
>
>Dynamic changes to @ISA would invalidate all the vtbls. (Hmm, since
>there is only a single copy, changes to @ISA would rebuild the
>vtbl.)

i.e. we have to chain or re-hash ;-)

You just re-invented "look up the name in a hash table" ;-)

You now have one big hash table rather than several small ones.
Which _may_ give side benefits - but I doubt it.

-- 
Nick Ing-Simmons

Reply via email to