Stdio.Port: Implementation and documentation differ
Imported from http://bugzilla.roxen.com/bugzilla/show_bug.cgi?id=4312
Reported by erik eriksson, opera software ee@opera.com
compare:
void main()
{
Stdio.Port p = Stdio.Port();
write("id: %O\n", p->query_id());
p->set_id(p);
write("id: %O\n", p->query_id());
}
with:
http://pike.lysator.liu.se/generated/manual/modref/ex/predef_3A_3A/Stdio/Port/set_id.html
The default id is this_object().
(I would prefer the implementation to be fixed to reflect what is stated in the documentation, rather than the other way around)
on my system:
ee@sprint:~/tmp$ pike -v
Pike v7.6 release 66 Copyright � 1994-2005 Link�ping University
Pike comes with ABSOLUTELY NO WARRANTY; This is free software and you are
welcome to redistribute it under certain conditions; Read the files
COPYING and COPYRIGHT in the Pike distribution for more details.
ee@sprint:~/tmp$ pike bug.pike
id: 0
id: Stdio.Port(ANY:0)
Edited by Henrik (Grubba) Grubbström