Thanks for asking. I'm a zelot on timely destruction, and
have been meaning to lobby for not dropping it in Perl
Cool, then. Give me examples of things that'll break without timely
If there is a performance issue, at least make it optional.
Ah, therein lies the rub. You can't make something like this
optional. It's either there, with full support for it, or it's not
there. There is no optional here. (If there was, I'd not be asking
Unfortunately none of the things you've presented quite do
it. Filehandles will be cleaned up reasonably quickly. Windows
definitely ought not go missing without some active action on the
part of a program. And "after" semantics on objects when they get
destroyed, well, you get that. It's just potentially indeterminate
when it happens. (Which, I realize, is the issue)
I think if the compiler could emit code that says "exit
scope; if referece count of the variable reached zero, then call
function" then it can take it from there.
There are no reference counts in parrot, and thus none in perl 6. If
there were this wouldn't be an issue.
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.
| & || & |
| < || < |
| > || > |
| [ || [ |
| ] || ] ||