develooper Front page | perl.cvs.parrot | Postings from January 2009

[svn:parrot] r35388 - in trunk/languages/perl6: src/pmc t/pmc

From:
pmichaud
Date:
January 10, 2009 22:15
Subject:
[svn:parrot] r35388 - in trunk/languages/perl6: src/pmc t/pmc
Message ID:
20090111061528.720AACB9F9@x12.develooper.com
Author: pmichaud
Date: Sat Jan 10 22:15:27 2009
New Revision: 35388

Modified:
   trunk/languages/perl6/src/pmc/objectref_pmc.template
   trunk/languages/perl6/t/pmc/objectref.t

Log:
[rakudo]:  Fix variable typo in ObjectRef.  Partially fixes RT #61324.


Modified: trunk/languages/perl6/src/pmc/objectref_pmc.template
==============================================================================
--- trunk/languages/perl6/src/pmc/objectref_pmc.template	(original)
+++ trunk/languages/perl6/src/pmc/objectref_pmc.template	Sat Jan 10 22:15:27 2009
@@ -24,7 +24,7 @@
 
     VTABLE void init() {
         PMC * const hll_ns    = Parrot_get_ctx_HLL_namespace(INTERP);
-        STRING * const s_obj  = string_from_literal(INTERP, "!$OBJECTREF");
+        STRING * const s_obj  = string_from_literal(INTERP, "$!OBJECTREF");
         PMC * const objectpmc = Parrot_find_global_n(INTERP, hll_ns, s_obj);
         STATICSELF.init_pmc(objectpmc);
     }

Modified: trunk/languages/perl6/t/pmc/objectref.t
==============================================================================
--- trunk/languages/perl6/t/pmc/objectref.t	(original)
+++ trunk/languages/perl6/t/pmc/objectref.t	Sat Jan 10 22:15:27 2009
@@ -35,7 +35,7 @@
     # ObjectRef is initialized to contain an undef.
     $P1 = new "ObjectRef"
     $S1 = typeof $P1
-    is($S1, 'Undef', 'typeof newclass retval')
+    is($S1, 'Failure', 'typeof newclass retval')
 .end
 
 



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