[svn:parrot] r39653 - branches/pmc_pct/compilers/pmcc/src

cotto at svn.parrot.org cotto at svn.parrot.org
Thu Jun 18 17:08:11 UTC 2009


Author: cotto
Date: Thu Jun 18 17:08:09 2009
New Revision: 39653
URL: https://trac.parrot.org/parrot/changeset/39653

Log:
[pmcc] pir simplification from coke++

Modified:
   branches/pmc_pct/compilers/pmcc/src/builtins.pir

Modified: branches/pmc_pct/compilers/pmcc/src/builtins.pir
==============================================================================
--- branches/pmc_pct/compilers/pmcc/src/builtins.pir	Thu Jun 18 16:23:30 2009	(r39652)
+++ branches/pmc_pct/compilers/pmcc/src/builtins.pir	Thu Jun 18 17:08:09 2009	(r39653)
@@ -100,11 +100,9 @@
     .return ($P0)
 
   idk:
-    $P0 = new ['Exception']
     $S0 = typeof what
-    $S0 = concat "don't know how to clone ", $S0
-    $P0['message'] = $S0
-    throw $P0
+    $S0 = "don't know how to clone" . $S0
+    die $S0
 .end
 
 .sub 'substr'


More information about the parrot-commits mailing list