Legend:
- Unmodified
- Added
- Removed
-
v6/mildew/P6Meta.pm
r22709 r22807 4 4 $OUT.print("add_method not implemented yet\n"); 5 5 }; 6 $p6meta. add_method($p6meta,'HOW',sub {6 $p6meta.^!how.add_method($p6meta,'HOW',sub { 7 7 }); -
v6/mildew/mildew
r22708 r22807 20 20 21 21 sub XXX { 22 confess 'unimplemented'22 confess join ' ', 'unimplemented: ', @_; 23 23 } 24 24 sub FETCH { … … 246 246 ); 247 247 } else { 248 XXX 249 } 250 } else { 251 XXX; 248 XXX('unknown methodop'); 249 } 250 } elsif (my $postop = $m->{dottyop}{postop}) { 251 if (my $postcircumfix = $postop->{postcircumfix}) { 252 my $positional = $methodop->{semilist}[0]{statement}[0]; 253 my @positional = $positional ? $positional->emit_m0ld : (); 254 AST::Call->new( 255 identifier => string 'postcircumfix:'.$postcircumfix->{FIRST}.' '.$postcircumfix->{LAST}, 256 capture => AST::Capture->new(invocant=>FETCH($noun),positional=>[@positional]), 257 ); 258 } else { 259 XXX('unknown postop'); 260 } 261 } else { 262 XXX('unknown dotty'); 252 263 } 253 264 } -
v6/mildew/t/pure_prototype_how.t
r22649 r22807 4 4 $object = ::p6opaque.^!CREATE; 5 5 $object.^!how() = ::PurePrototypeHow; 6 $object.^!methods. postcircumfix:<{ }>("foo")= sub {6 $object.^!methods.{"foo"} = sub { 7 7 #say "ok 1 #method call"; 8 8 $OUT.print("ok 1 #method call\n");
