On Wed, Jul 16, 2008 at 11:20:28AM -0500, Chris Fields wrote: > I have submitted a simple 'match' implementation for rakudo (method > version of m//, RT#56970) and ran into an odd issue. The current > version of match which works uses a tail call: > > .sub 'match' :method > .param pmc x > .return x.ACCEPTS(self) > .end
.ACCEPTS should be calling .match, not vice-versa. Essentially the difference is that smart-match sets $/, while a simple call to .match probably should not. Pm