Changes between Initial Version and Version 1 of ParrotDeprecationsFor2.6

Show
Ignore:
Timestamp:
06/28/10 06:51:07 (12 years ago)
Author:
cotto
Comment:

initial version with a couple examples

Legend:

Unmodified
Added
Removed
Modified
  • ParrotDeprecationsFor2.6

    v1 v1  
     1== Remove sizeof op == 
     2 
     3=== Rationale === 
     4 
     5This op was used to determine the size of a PMC's C-level struct given a numerical PMC type id.  This op was deprecated because numerical PMC id values should not be exposed to PIR-level code. 
     6 
     7=== Replacement === 
     8   
     9No replacement currently exists because no core, library or HLL code was found to rely on this op.  If this functionality is needed, a string-based version could easily be implemented.  See TT #633 for further discussion. 
     10 
     11== Replace STRING_is_null with Parrot_str_is_null == 
     12 
     13=== Rationale === 
     14 
     15Make string null checks look like a Parrot API function. 
     16 
     17=== Replacement === 
     18 
     19Replace uses of the C function STRING_is_null with Parrot_str_is_null.  Parrot_str_is_null is a drop-in replacement for STRING_is_null.  See TT #1585 for (very sparse) further discussion. 
     20 
     21== Remove in-place substr op variants == 
     22 
     23=== Rationale === 
     24 
     25Parrot moved to immutable strings for performance reasons.  With immutable strings, a PIR-level string is never changed once it's been created.  This means that ops that work on a string in-place no longer make sense. 
     26 
     27=== Replacement === 
     28 
     29PIR code should be changed as follows: 
     30{{{ 
     31    #old version 
     32    substr $S0, $I0, $I1, $S1 
     33 
     34    #new version 
     35    $S0 = replace $S0, $I0, $I1, $S1   
     36}}} 
     37 
     38See also r46055 for more examples.  See TT #1450 for further discussion. 
     39 
     40