Is this to be expected? Why does it run up?
object c=Stdio.File(); _refs(c);
Result: 2
c=c;
Result: Stdio.File(0, 0, 777 /* fd=-1 */)
_refs(c);
Result: 3
c=c;
Result: Stdio.File(0, 0, 777 /* fd=-1 */)
_refs(c);
Result: 4
I think that is a hilfe effect.
On 09/04/14 20:32, Stephen R. van den Berg wrote:
Is this to be expected? Why does it run up?
object c=Stdio.File(); _refs(c);
Result: 2
c=c;
Result: Stdio.File(0, 0, 777 /* fd=-1 */)
_refs(c);
Result: 3
c=c;
Result: Stdio.File(0, 0, 777 /* fd=-1 */)
_refs(c);
Result: 4
On Fri, Sep 5, 2014 at 4:46 AM, Arne Goedeke el@laramies.com wrote:
I think that is a hilfe effect.
Yeah, that's Hilfe's result history. Visible thus:
object c=Stdio.File(); _refs(c);
(1) Result: 2
c=c;
(2) Result: Stdio.File(0, 0, 777 /* fd=-1 */)
_refs(c);
(3) Result: 3
c=c;
(4) Result: Stdio.File(0, 0, 777 /* fd=-1 */)
_refs(c);
(5) Result: 4
values(__);
(6) Result: ({ /* 5 elements */ 2, Stdio.File(0, 0, 777 /* fd=-1 */), 3, Stdio.File(0, 0, 777 /* fd=-1 */), 4 })
ChrisA
Doesn't all answers in hilfe keep a reference, så you can do things with them later?
pike-devel@lists.lysator.liu.se