return func_type
def analyse_c_function_call(self, env):
- entry = PyrexTypes.best_match(self.args, self.function.entry.all_alternatives(), self.pos)
+ if self.function.type.is_cpp_class:
+ function = self.function.type.scope.lookup("operator()")
+ if function is None:
+ self.type = PyrexTypes.error_type
+ self.result_code = "<error>"
+ return
+ else:
+ function = self.function.entry
+ entry = PyrexTypes.best_match(self.args, function.all_alternatives(), self.pos)
if not entry:
self.type = PyrexTypes.error_type
self.result_code = "<error>"
'+', '-', '*', '/', '%',
'++', '--', '~', '|', '&', '^', '<<', '>>',
'==', '!=', '>=', '>', '<=', '<',
- '[]',
+ '[]', '()',
])
def p_c_simple_declarator(s, ctx, empty, is_type, cmethod_flag,