develooper Front page | perl.perl5.porters | Postings from September 2001

Re: [PATCH op.c op.h pp_sys.c t/op/local.t pod/perlfunc.pod]local chdir()

Thread Previous | Thread Next
From:
Arthur Bergman
Date:
September 1, 2001 11:19
Subject:
Re: [PATCH op.c op.h pp_sys.c t/op/local.t pod/perlfunc.pod]local chdir()
Message ID:
B7B6F337.3770%arthur@contiller.se
01-09-01 20.15, skrev Michael G Schwern på schwern@pobox.com följande:

> That would be probably the best way to do it.  Have some sort of hook
> that lets you add scope destructors to things.  I have no idea how to
> do it.  Sounds complicated, <obvious troll>probably will never get
> done.</obvious troll>

You can do it with a custom op :)

The trouble is you cannot do it from an XS since the XS is a scope of itself
and the DESTRUCTOR will be run when you leave it.

<troll>
Now if Simon could upload some custom op stuff so...
</troll>

:-)

-- 
Arthur


Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About