At 2:30 AM +0000 4/20/02, Chip Salzenberg wrote: >According to [EMAIL PROTECTED] (Dan Sugalski): >>At the moment, we don't have to support cascading lexical >>scratchpads--since we know at compile time which variables we're >>accessing and where they come from, we can install trampoline entries >>in the current scope's scratchpad and not have to search outward at >>runtime. > >Once you start down that path, forever will it dominate your closure >implementation. I suggest you do lexical scopes right from the start.
That sounds like a good idea. :) What, in this context, is right? I'm kinda winging it. >Surely they're not that much harder than a trampoline.... Are they? No, but there are speed issues. With a trampoline (or just sticking the original PMC's pointer in) we don't have to do any back-lookups. Plus there's the issue of how injecting lexicals into caller's scopes are supposed to work. >PS: I'm back. }:-) Yay! -- Dan --------------------------------------"it's like this"------------------- Dan Sugalski even samurai [EMAIL PROTECTED] have teddy bears and even teddy bears get drunk