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

[svn:parrot] r34529 - in trunk: . src/ops

From:
coke
Date:
December 28, 2008 17:01
Subject:
[svn:parrot] r34529 - in trunk: . src/ops
Message ID:
20081229010146.846ADCB9FA@x12.develooper.com
Author: coke
Date: Sun Dec 28 17:01:45 2008
New Revision: 34529

Modified:
   trunk/DEPRECATED.pod
   trunk/src/ops/experimental.ops

Log:
Remove the experimental 'slice' ops.

(don't think we need to touch PBC_COMPAT for experimental ops.)



Modified: trunk/DEPRECATED.pod
==============================================================================
--- trunk/DEPRECATED.pod	(original)
+++ trunk/DEPRECATED.pod	Sun Dec 28 17:01:45 2008
@@ -60,12 +60,6 @@
 
 These opcodes were only used by the old MMD system. See TT #7.
 
-=item * C<slice> [post 0.8.2]
-
-The C<slice> opcode's implementation is experimental. Its use cases and
-implementation should be reconsidered. The current implementation will
-be removed.
-
 =back
 
 =head1 Class Features

Modified: trunk/src/ops/experimental.ops
==============================================================================
--- trunk/src/ops/experimental.ops	(original)
+++ trunk/src/ops/experimental.ops	Sun Dec 28 17:01:45 2008
@@ -146,31 +146,12 @@
 }
 
 
-=item B<slice>(out PMC, invar PMC, in KEY)
-
-Return a new Iterator PMC $1 for aggregate $2 and Slice PMC $3.
-
-=item B<slice>(out PMC, invar PMC, in KEY, inconst INT)
-
-Return a new list PMC $1 for aggregate $2 and Slice PMC $3.
-
-This is a Python opcode. Range is i <= k < j. $4 must be 1.
-May change and move to python.ops.
-
 =item B<iter>(out PMC, invar PMC)
 
 Return a new Iterator PMC $1 for aggregate $2.
 
 =cut
 
-inline op slice(out PMC, invar PMC, in KEY) :base_core {
-    $1 = VTABLE_slice(interp, $2, $3, 0);
-}
-
-inline op slice(out PMC, invar PMC, in KEY, inconst INT) :python {
-    $1 = VTABLE_slice(interp, $2, $3, $4);
-}
-
 inline op iter(out PMC, invar PMC) :base_core {
     $1 = VTABLE_get_iter(interp, $2);
 }



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