Skip to content

Instantly share code, notes, and snippets.

@masak
Created September 13, 2008 11:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save masak/10589 to your computer and use it in GitHub Desktop.
Save masak/10589 to your computer and use it in GitHub Desktop.
<masak> perl6: my $b := &say; $b(5)
<p6eval> elf 22235:
OUTPUT[/home/evalenv/pugs/misc/elf/elf_f_src/STD_red/match.rb:141:in `block
in to_dump0': undefined method `to_dump0' for true:TrueClass (NoMethodError)␤
from /home/evalenv/pugs/misc/elf/elf_f_src/STD_red/match.rb:140:in `each'␤
from
<p6eval> ../home/evalenv/pugs/misc/elf/elf_f_src/STD_red/match.r...
<p6eval> ..pugs, rakudo 31066: OUTPUT[5␤]
<masak> perl6: my &b := &say; b(5)
<p6eval> elf 22235:
OUTPUT[/home/evalenv/pugs/misc/elf/elf_f_src/STD_red/match.rb:141:in `block
in to_dump0': undefined method `to_dump0' for true:TrueClass (NoMethodError)␤
from /home/evalenv/pugs/misc/elf/elf_f_src/STD_red/match.rb:140:in `each'␤
from
<p6eval> ../home/evalenv/pugs/misc/elf/elf_f_src/STD_red/match.r...
<p6eval> ..pugs, rakudo 31066: OUTPUT[5␤]
<masak> perl6: my &b := &say; &b(5)
<p6eval> rakudo 31066: OUTPUT[Lexical 'b' not found␤current instr.: '_block11' pc 21
(EVAL_13:16)␤]
<p6eval> ..elf 22235:
OUTPUT[/home/evalenv/pugs/misc/elf/elf_f_src/STD_red/match.rb:141:in `block
in to_dump0': undefined method `to_dump0' for true:TrueClass (NoMethodError)␤
from /home/evalenv/pugs/misc/elf/elf_f_src/STD_red/match.rb:140:in `each'␤
from
<p6eval> ../home/evalenv/pugs/misc/elf/elf_f_src/STD_red/match.r...
<p6eval> ..pugs: OUTPUT[5␤]
<masak> that last one, is it supposed to work (as it does in Pugs)?
<masak> I find nothing in the synopses about this.
<masak> also, should this work?
<masak> perl6: sub a(&b) { &b(5) }; a(&say)
<p6eval> rakudo 31066: OUTPUT[invoke() not implemented in class 'Undef'␤current
instr.: 'a' pc 145 (EVAL_15:67)␤]
<p6eval> ..elf 22235:
OUTPUT[/home/evalenv/pugs/misc/elf/elf_f_src/STD_red/match.rb:141:in `block
in to_dump0': undefined method `to_dump0' for true:TrueClass (NoMethodError)␤
from /home/evalenv/pugs/misc/elf/elf_f_src/STD_red/match.rb:140:in `each'␤
from
<p6eval> ../home/evalenv/pugs/misc/elf/elf_f_src/STD_red/match.r...
<p6eval> ..pugs: OUTPUT[5␤]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment