On Thu Apr 05 05:44:37 2012, masak wrote:
> <moritz> p6: say $*IN.slurp.comb(/e/).elems
> <p6eval> rakudo 4373f0, niecza v15-6-gefda208: OUTPUT«88␤»
> <masak> r: say slurp.comb(/e/).elems

Both of these now say 88. Closable with tests.

> <p6eval> rakudo 4373f0: OUTPUT«===SORRY!===␤CHECK FAILED:␤Calling
> 'slurp' will never work with no arguments (line 1)␤Expected any of:␤
>  :(Any $filename)␤»
> <masak> how come lines() defaults to $*IN, but slurp() doesn't?
> <moritz> not $*IN, $*ARGFILES
> <moritz> ... and I don't know
> <masak> they feel somehow analogous.
> <moritz> agreed
> * masak patches the spec
> <masak> oh, and S32/IO already has it that way. it's just that Rakudo
> doesn't implement it.
> * masak submits rakudo todo-ticket
> <moritz> masak: now spectesting a fix
> <masak> moritz++


-- 
Will "Coke" Coleda

Reply via email to