Fwd: [svn:parrot] r48243 - trunk/runtime/parrot/library

Will Coleda will at coleda.com
Sun Aug 1 00:05:49 UTC 2010


Please a test to parrot to prevent someone else trying to speed up
rakudo inappropriately in the future.

As mentioned in the previous commit, this passed make test on both
parrot and rakudo.

Regards.


---------- Forwarded message ----------
From:  <pmichaud at svn.parrot.org>
Date: Sat, Jul 31, 2010 at 7:52 PM
Subject: [svn:parrot] r48243 - trunk/runtime/parrot/library
To: parrot-commits at lists.parrot.org


Author: pmichaud
Date: Sat Jul 31 23:52:57 2010
New Revision: 48243
URL: https://trac.parrot.org/parrot/changeset/48243

Log:
Revert "Avoid creating a PMC here, rely on autoboxing instead."

This reverts commit b102dce21f9d664c7224b984c466b0298465d4d3 (r48242).
.ACCEPTS here is supposed to always return a boolean value;
this causes it to return an integer instead.  Rakudo fails
t/spec/S02-builtin_data_types/bool.t unless this commit is reverted.

Modified:
  trunk/runtime/parrot/library/P6object.pir

Modified: trunk/runtime/parrot/library/P6object.pir
==============================================================================
--- trunk/runtime/parrot/library/P6object.pir   Sat Jul 31 19:23:15
2010        (r48242)
+++ trunk/runtime/parrot/library/P6object.pir   Sat Jul 31 23:52:57
2010        (r48243)
@@ -818,7 +818,9 @@
    $I0 = 1

  end:
-    .return ($I0)
+    $P0 = new ['Boolean']
+    assign $P0, $I0
+    .return ($P0)
 .end


_______________________________________________
http://lists.parrot.org/mailman/listinfo/parrot-commits



-- 
Will "Coke" Coleda


More information about the parrot-dev mailing list