Changes between Initial Version and Version 1 of ParrotDeprecationsFor3.0

Show
Ignore:
Timestamp:
10/27/10 19:57:56 (11 years ago)
Author:
nwellnhof
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • ParrotDeprecationsFor3.0

    v1 v1  
     1= Parrot Deprecations for 3.0 = 
     2 
     3== PIR string literals with charset and encoding are deprecated == 
     4 
     5=== Description === 
     6 
     7PIR string literals of the form 
     8 
     9{{{ 
     10encoding:charset:"string" 
     11}}} 
     12 
     13are deprecated. 
     14 
     15=== Rationale === 
     16 
     17After the charset/encoding merge, they're unneeded. 
     18 
     19=== Replacement === 
     20 
     21They can be replaced with 
     22 
     23{{{ 
     24encoding:"string" 
     25}}} 
     26 
     27The encoding should be one of the new unified encodings. 
     28 
     29== Remaining string_* functions are deprecated == 
     30 
     31=== Description === 
     32 
     33The string_* functions have been deprecated for a while. The remaining functions are: 
     34 
     35{{{ 
     36string_make 
     37string_ord 
     38string_chr 
     39string_to_cstring_nullable 
     40string_max_bytes 
     41string_increment 
     42}}} 
     43 
     44=== Rationale === 
     45 
     46They're old cruft. 
     47 
     48=== Replacement === 
     49 
     50string_make should be replaced with Parrot_str_new_init. You can use Parrot_find_encoding to get an encoding from a cstring. 
     51 
     52Replace string_ord with Parrot_str_indexed. 
     53 
     54Replace string_chr with Parrot_str_chr. 
     55 
     56Replace string_to_cstring_nullable with Parrot_str_to_cstring. 
     57 
     58string_max_bytes and string_increment will be removed.