Re: Q: Sub vs Closure lexical pads

2004-01-21 Thread Luke Palmer
Leopold Toetsch writes: > While trying to generate a small example that shows the memory > corruption problem reported by Steve, I came along these issues: > > a) [1] is .Sub, [2] is turned off >The subroutine prints main's $m - very likely wrong. Well, Subs don't do anything with pads, so I

Q: Sub vs Closure lexical pads

2004-01-21 Thread Leopold Toetsch
While trying to generate a small example that shows the memory corruption problem reported by Steve, I came along these issues: a) [1] is .Sub, [2] is turned off The subroutine prints main's $m - very likely wrong. Q: Should the Sub get a NULL scratch pad, or a new empty scratch pad stack? b)