Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make handles themselves remember whether to warn when closed #15437

Open
p5pRT opened this issue Jul 12, 2016 · 1 comment
Open

Make handles themselves remember whether to warn when closed #15437

p5pRT opened this issue Jul 12, 2016 · 1 comment

Comments

@p5pRT
Copy link

p5pRT commented Jul 12, 2016

Migrated from rt.perl.org#128605 (status was 'new')

Searchable as RT128605$

@p5pRT
Copy link
Author

p5pRT commented Jul 12, 2016

From @cpansprout

In ticket #128597, Zefram wrote​:

Whether a particular I/O handle should be warned for, upon implicit
close, seems like a feature of the handle, which should be stored as
a flag in the handle structure. Obviously the flag state has to be
initialised upon opening, and by default the flag could reasonably be
set according to the warning flag prevailing *at the point of the open*.
(It should also be possible to control the flag explicitly per handle.
This could be done as a self-popping I/O layer, which would allow both
setting the flag during open and changing it later.)

The purpose of this is to solve the problem of which scope is active during scope unwinding (that is never really clear, and it usually just emerges from the implementation).

--

Father Chrysostomos

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants