Ticket #996 (closed RFC: fixed)
Socket.pmc should implement readline
|Reported by:||coke||Owned by:||whiteknight|
The following code
.sub main $P1 = new 'Socket' # connect to a port. $S1 = readline $P1 .end
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.)