Function call returning a reference is an lvalue.
authorRobert Bradshaw <robertwb@math.washington.edu>
Sun, 21 Feb 2010 09:13:56 +0000 (01:13 -0800)
committerRobert Bradshaw <robertwb@math.washington.edu>
Sun, 21 Feb 2010 09:13:56 +0000 (01:13 -0800)
Cython/Compiler/ExprNodes.py

index e610fc62d3a677b7b5d7c2e387173e310aaff47e..29ae3ca281388ef9e8b4a4bcd3babe7f7904a966 100755 (executable)
@@ -2459,6 +2459,9 @@ class CallNode(ExprNode):
             self.function.set_cname(type.declaration_code(""))
             self.analyse_c_function_call(env)
             return True
+    
+    def is_lvalue(self):
+        return self.type.is_reference
 
     def nogil_check(self, env):
         func_type = self.function_type()