Show
Ignore:
Timestamp:
07/26/07 20:06:38 (5 years ago)
Author:
KirkMcDonald
Message:

* Pyd now requires D 2.003 or later.
* Pyd now compiles with D 2.003.
* Resolved long-standing string-copying annoyance (thanks to const).

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/infrastructure/pyd/func_wrap.d

    r113 r120  
    5959} 
    6060 
    61 void setWrongArgsError(int gotArgs, uint minArgs, uint maxArgs, char[] funcName="") { 
     61void setWrongArgsError(int gotArgs, uint minArgs, uint maxArgs, string funcName="") { 
    6262    char[] str; 
    6363    if (funcName == "") { 
     
    238238                return null; 
    239239            } 
    240             fn_to_dg!(fn_t) dg = dg_wrapper!(C, fn_t)(instance, &real_fn); 
     240            fn_to_dg!(fn_t) dg = dg_wrapper!(C, fn_t)(instance, cast(fn_t)&real_fn); 
    241241            return pyApplyToDelegate(dg, args); 
    242242        });