Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot

Re: On timely destruction?

by Juerd (Abbot)
on Aug 28, 2002 at 07:42 UTC ( #193379=note: print w/replies, xml ) Need Help??

in reply to On timely destruction?

Apo 4 describes my $foo is post { close } = open 'bar.txt';, so that's no problem. I wonder what would happen on push our @foos, $foo, though. Are properties connected to variables or to their values?

- Yes, I reinvent wheels.
- Spam: Visit eurotraQ.

Replies are listed 'Best First'.
Re: Re: On timely destruction?
by theorbtwo (Prior) on Aug 28, 2002 at 07:59 UTC

    They can be attached to either. That purticular prop is on the variable, since it's attached to the my. If you wanted it to be on the value, you should have written my $foo = (open 'bar.txt') is post {close}. If I understand and remember Apoc4 correctly, which I might not.

    Confession: It does an Immortal Body good.

Re: Re: On timely destruction?
by John M. Dlugosz (Monsignor) on Aug 28, 2002 at 16:39 UTC
    Now if I didn't have to put is post {close} in every open but could have that implicit, that would be better. Except when I use closures...  is post { close if .dead } maybe, where an object can test if it has no (other) references, and registered that it needs to be counted.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://193379]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (2)
As of 2016-10-24 01:14 GMT
Find Nodes?
    Voting Booth?
    How many different varieties (color, size, etc) of socks do you have in your sock drawer?

    Results (302 votes). Check out past polls.