Changes between Version 1 and Version 2 of ParrotDeprecationsFor2.9

Show
Ignore:
Timestamp:
07/30/10 21:52:14 (11 years ago)
Author:
cotto
Comment:

elaborate a bit and add examples

Legend:

Unmodified
Added
Removed
Modified
  • ParrotDeprecationsFor2.9

    v1 v2  
    77=== Rationale === 
    88 
    9 This function wasn't conform to the naming conventions, see TT #443 for details. 
    10  
    11 See also [wiki:PCCMigrationNotes]. 
     9This function didn't conform to Parrot's naming conventions.  See TT #443 and [wiki:PCCMigrtationNotes] for details. 
    1210 
    1311=== Replacement === 
    1412 
    15 Use Parrot_pcc_invoke_method_from_c_arg instead. 
     13Use Parrot_pcc_invoke_method_from_c_arg instead.  A simple textual substitution is enough to update any code that depends on this function. 
     14{{{ 
     15   /* old code */ 
     16   Parrot_PCCINVOKE(interp, interp->scheduler, CONST_STRING(interp, "count_handlers"), "S->I", handler_type, &count); 
     17    
     18   /* updated code */ 
     19   Parrot_pcc_invoke_method_from_c_args(interp, interp->scheduler, CONST_STRING(interp, "count_handlers"), "S->I", handler_type, &count); 
     20 
     21}}} 
     22 
     23See r42129 for more examples.