Changes between Version 6 and Version 7 of ParrotDeprecationsFor3.0

Show
Ignore:
Timestamp:
11/21/10 09:03:04 (4 years ago)
Author:
plobsing
Comment:

add deprecation information for CodeString

Legend:

Unmodified
Added
Removed
Modified
  • ParrotDeprecationsFor3.0

    v6 v7  
    11= Parrot Deprecations for 3.0 = 
     2 
     3== CodeString == 
     4 
     5The CodeString PMC has been removed 
     6 
     7=== Rationale === 
     8 
     9Equivalent and more efficient functionality is available from StringBuilder. 
     10 
     11=== Replacement === 
     12 
     13CodeString contains a number of convenience methods in addition to its core functionality. It is easier to replace these first. 
     14 
     15 * CodeString.lineof can be replaced by PGE;Util;line_number 
     16 * CodeString.unique can be replaced by PGE;Util;unique, PAST;Compiler;unique, or PAST;Compiler;uniquereg 
     17 * CodeString.escape can be replaced by PGE;Util;pir_str_escape 
     18 * CodeString.key can be replaced by PGE;Util;pir_key_escape 
     19 * CodeString.charname_to_ord can be replaced by the find_codepoint opcode 
     20  
     21After these replacements, StringBuilder can be substituted for CodeString by changing .emit to .append_format. append_format does not add newlines, so these must be added to the format string. 
    222 
    323== :unique_reg PIR value flag ==