Ticket #996 (closed RFC: fixed)

Opened 5 years ago

Last modified 4 years ago

Socket.pmc should implement readline

Reported by: coke Owned by: whiteknight
Priority: normal Milestone:
Component: none Version: trunk
Severity: medium Keywords:
Cc: Language:
Patch status: Platform:

Description

The following code

.sub main
  $P1 = new 'Socket'
  # connect to a port.
  $S1 = readline $P1
.end

dies with

Method 'readline' not found
current instr.: 'main' pc -1 ((unknown file):-1)
called from Sub 'main' pc 3 (foo.pir:4)

I imagine I'm not the only HLL author who needs line-based reads on arbitrary handles. Is this something parrot should provide or do I need to roll my own?

(also, if readline is just a shortcut to call the readline method, let's kill the opcode.)

Change History

Changed 4 years ago by whiteknight

  • owner set to whiteknight

Changed 4 years ago by whiteknight

  • status changed from new to closed
  • resolution set to fixed

Socket PMC does implement readline method now.

Note: See TracTickets for help on using tickets.