develooper Front page | perl.cvs.parrot | Postings from December 2008

[svn:parrot] r33504 - trunk/languages/perl6/src/classes

From:
jonathan
Date:
December 5, 2008 04:06
Subject:
[svn:parrot] r33504 - trunk/languages/perl6/src/classes
Message ID:
20081205120652.10647CB9AF@x12.develooper.com
Author: jonathan
Date: Fri Dec  5 04:06:50 2008
New Revision: 33504

Modified:
   trunk/languages/perl6/src/classes/Match.pir

Log:
[rakudo] Fix our ability to smart-match against Match (which checks the LHS is of type Match).

Modified: trunk/languages/perl6/src/classes/Match.pir
==============================================================================
--- trunk/languages/perl6/src/classes/Match.pir	(original)
+++ trunk/languages/perl6/src/classes/Match.pir	Fri Dec  5 04:06:50 2008
@@ -28,6 +28,9 @@
 .sub '' :anon :load :init
     $P0 = get_hll_global ['PGE'], 'Match'
     $P0.'!MUTABLE'()
+
+    # Also install Match proto in our HLL namespace.
+    set_hll_global 'Match', $P0
 .end
 
 #



nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About