Moritz (>):
> I've gathered that Rakudo now implements sockets, and I wanted to do
> some basic data shuffling for testing purposes. Could anybody point me
> to a really simple, working example?
>
> I tried to cargo-cult it from Web.pm
> (<http://github.com/masak/web/blob/c6f53b76241d3c16bcc356dfe555d055f2f0ecfa/lib/HTTP/Daemon.pm>):
>
>
> use v6;
> my $l = IO::Socket::INET.socket(2, 1, 6).bind('127.0.0.1', 1234);
> my $s = $l.accept();
>
> That dies on the last line, with
>
> Null PMC access in isa()
> current instr.: '!CALLMETHOD' pc 18912 (src/builtins/guts.pir:80)
> called from Sub 'infix:=' pc 15762 (src/builtins/assign.pir:37)
> called from Sub '_block14' pc 156 (EVAL_18:64)
> ...
>
> Should it work?

Aye. :/ Something must have regressed in the past week in Rakudo. I'll
have a look at what it might be. In the meantime, it might be more
fruitful to run a week-old checkout of Rakudo.

// Carl

Reply via email to