Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
pike
pike
  • Project overview
    • Project overview
    • Details
    • Activity
    • Releases
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 105
    • Issues 105
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
  • Merge Requests 0
    • Merge Requests 0
  • CI / CD
    • CI / CD
    • Pipelines
    • Jobs
    • Schedules
  • Operations
    • Operations
    • Incidents
    • Environments
  • Analytics
    • Analytics
    • CI / CD
    • Repository
    • Value Stream
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Members
    • Members
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • pikelang
  • pikepike
  • Issues
  • #4312

Closed
Open
Opened 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
Pike Next
Milestone
Pike Next
Assign milestone
Time tracking
None
Due date
None
Reference: pikelang/pike#4312