On Apr 25, 2007, at 1:38 PM, David Nicol wrote: > On 4/25/07, Rafael Garcia-Suarez <rgarciasuarez@gmail.com> wrote: > >> You mean add Hook::Scope to the core ? >> (I haven't tested it with blead, but since it's ridiculously >> simple, I >> think it should.) > > first, extend it so it becomes possible to add things to POST blocks > in enclosing, outer scopes somehow, even accross package and file > boundaries, > so it can be used for implying unimport. > > And also either remove, or commit to keeping the block around C<use>. > > But yes, Hook::Scope is clearly better than shoehorning a POST hook > into a tied lexical's DESTROY method. > > Thanks. What are we trying to accomplish? And yes Hook::Scope before I started to move it to compile time status was really simple. LEAVE; savedestructor_x ENTER; arturThread Previous | Thread Next