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

DS> The language semantics of tie strongly impact the internals. tie() is 
DS> basically a declaration that the rules are completely different (and 
DS> unknown at compile time) for the tied variable. Shoots down optimization a 
DS> bunch, since access to a tied varible has to be treated as a function call 
DS> rather than as access to data with known behaviours.

Why?

The vtbl for a tied variable would do all the work. Either the pointer
is to a springboard into perl code, or internal code, or the XS
replacement code.

We might be able to add a hint hook to the module (or the vtbl) that
would help optimization and the compiler.

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

Reply via email to