On Sat, Dec 29, 2007 at 12:04:09PM +0200, Allison Randal wrote: > Patrick R.Michaud (via RT) wrote: > > > >Whenever a PAST::Op node gets a non-PAST child, PCT currently > >throws a cryptic exception message like: > > > >Method 'named' not found for invocant of class 'Perl6::Grammar' > > > >A better exception message would be something like: > > > >Perl6::Grammar ("2") child of PAST::Op cannot be converted to POST. > ... > Though, the cheapest option may be to simply wrap non-PAST children in a > PAST-compatible proxy. (That assumes that the non-PAST children are > intentionally there, and aren't slipping in by mistake.)
The exception generally means that the non-PAST children slipped in by mistake -- the purpose of this ticket is to get PCT to provide a better diagnosis when that occurs. Pm