--- sub.c.orig +++ sub.c Thu Nov 7 23:15:06 2002 @@ -139,7 +139,13 @@ PMC * pad_pmc = pmc_new(interp, enum_class_Scratchpad); pad_pmc->cache.int_val = 0; - if ((base && depth > base->cache.int_val) || (!base && depth != 0)) { + if (base && depth < 0) { + depth = base->cache.int_val + depth + 1; + } + + if ((depth < 0) + || (base && depth > base->cache.int_val) + || (!base && depth != 0)) { internal_exception(-1, "-scratch_pad: too deep\n"); return NULL; }
- [perl #18170] [PATCH] very complete lexical scope impleme... via RT
- Re: [perl #18170] [PATCH] very complete lexical scop... Leopold Toetsch
- RE: [perl #18170] [PATCH] very complete lexical ... Jonathan Sillito
- Re: [perl #18170] [PATCH] very complete lexical scop... Juergen Boemmels
- Re: [perl #18170] [PATCH] very complete lexical ... Jonathan Sillito
- Re: [perl #18170] [PATCH] very complete lexi... Juergen Boemmels
- Re: [perl #18170] [PATCH] very complete lexi... Juergen Boemmels
- Re: [perl #18170] [PATCH] very complete ... Juergen Boemmels
- Re: [perl #18170] [PATCH] very complete lexical scop... Steve Fink
- RE: [perl #18170] [PATCH] very complete lexical ... Jonathan Sillito
- Re: [perl Steve Fink
- Re: [perl Steve Fink
- Re: [perl #18170] [PATCH] very complete lexi... kj
- RE: [perl #18170] [PATCH] very complete ... Jonathan Sillito