Skip to content
GitLab
Projects Groups Topics Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Register
  • Sign in
  • pike pike
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributor statistics
    • Graph
    • Compare revisions
  • Issues 105
    • Issues 105
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 0
    • Merge requests 0
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Artifacts
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Container Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • pikelang
  • pikepike
  • Issues
  • #4312
Closed
Open
Issue created Feb 06, 2007 by Peter Bortas@zinoOwner

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 Mar 06, 2020 by Henrik (Grubba) Grubbström
Assignee
Assign to
Time tracking