Rakudo now gives a much more useful error message for the case where
make() cannot set a result object:
$ cat 63800
grammar G {
regex TOP { 'a' {*} }
}
class GA {
method TOP($m) { make GA.new }
}
G.parse('a', :action(GA.new));
$ ./perl6 63800
make
On Thu, Mar 12, 2009 at 01:42:47AM -0700, Matthew Walton wrote:
> Run this:
>
> grammar G {
> regex TOP { 'a' {*} }
> }
> class GA {
> method TOP($m) { make GA.new }
> }
>
> G.parse('a', :action(GA.new));
>
>
> And this happens:
>
> rakudo ea3283: OUTPUT«Method 'result_object' not found fo
# New Ticket Created by Matthew Walton
# Please include the string: [perl #63800]
# in the subject line of all future correspondence about this issue.
# http://rt.perl.org/rt3/Ticket/Display.html?id=63800 >
Run this:
grammar G {
regex TOP { 'a' {*} }
}
class GA {
method TOP($m) { make G