Permalink
Browse files

rename Match constructor to create() - then it works. No idea why

  • Loading branch information...
1 parent 7c08f92 commit be3b3f78f38c6344d72f07e192c3d9934fd725b9 @moritz moritz committed Mar 27, 2010
Showing with 3 additions and 3 deletions.
  1. +1 −1 src/Regex/Cursor.pir
  2. +2 −2 src/Regex/Match.pir
@@ -151,7 +151,7 @@ for the Cursor if one hasn't been created yet.
# this is an ugly hack: we should have one object lying around somewhere
# and act as a "factory" to call the .new method on
match = get_hll_global ['Regex'], 'Match'
- match = match.'new'('cursor' => self, 'orig' => target, 'from' => from, 'to' => to, 'named_caps' => named_caps, 'pos_caps' => positional_caps)
+ match = match.'create'('cursor' => self, 'orig' => target, 'from' => from, 'to' => to, 'named_caps' => named_caps, 'pos_caps' => positional_caps)
setattribute self, '$!match', match
match_done:
View
@@ -25,13 +25,13 @@ This file implements Match objects for the regex engine.
=over 4
-=item new
+=item create
Constructs a new Regex::Match object
=cut
-.sub 'new' :method
+.sub 'create' :method
.param pmc orig :named( 'orig' )
.param pmc cursor :named( 'cursor' )
.param pmc from :named( 'from' )

0 comments on commit be3b3f7

Please sign in to comment.