Carl Witty wrote: > A declaration in a "module global variables" class: > > CallSite< Func< CallSite^, Object^, Object^, Object^ >^ >^ > __site_op_add_16_14; > > This executes once at module load time: > > __site_op_add_16_14 = CallSite< Func< CallSite^, Object^, Object^, > Object^ >^ > >::Create(context->CreateBinaryOperationBinder(ExpressionType::Add)); > > And then to actually do the addition: > > __pyx_t_1 = > __pyx_globals->__site_op_add_16_14->Target(__pyx_globals->__site_op_add_16_14, > __pyx_v_v1, __pyx_v_v2); > > (The 16 and 14 are the line and column number of the addition > operation; I thought this would be nicer than some sort of counter. I > encoded the operation type in the call site name so you can see what > the call is doing.) > Great, that looks really cool!
Dag Sverre _______________________________________________ Cython-dev mailing list [email protected] http://codespeak.net/mailman/listinfo/cython-dev
