#996: Socket.pmc should implement readline
--------------------+-------------------------------------------------------
Reporter: coke | Owner:
Type: RFC | Status: new
Priority: normal | Milestone:
Component: none | Version: trunk
Severity: medium | Keywords:
Lang: | Patch:
Platform: |
--------------------+-------------------------------------------------------
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.)
--
Ticket URL: <https://trac.parrot.org/parrot/ticket/996>
Parrot <https://trac.parrot.org/parrot/>
Parrot Development
_______________________________________________
parrot-tickets mailing list
[email protected]
http://lists.parrot.org/mailman/listinfo/parrot-tickets