Ticket #996 (closed RFC: fixed)
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
Note: See
TracTickets for help on using
tickets.