On Jul 16, 2008, at 5:45 PM, Chris Fields wrote:
On Jul 16, 2008, at 1:28 PM, Patrick R. Michaud wrote:
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.
Okay, though ACCEPTS is currently defined in Code.pir (REJECTS as
well). Would calling .match pertain to all executable blocks, or
should we have a Regex-specific ACCEPTS that calls .match?
Forget that last bit; I'm re-reading the relevant parts of S03/S05 to
get everything straight.
chris