disable slice assignments to pointers for now
authorStefan Behnel <scoder@users.berlios.de>
Fri, 14 Nov 2008 20:06:34 +0000 (21:06 +0100)
committerStefan Behnel <scoder@users.berlios.de>
Fri, 14 Nov 2008 20:06:34 +0000 (21:06 +0100)
Cython/Compiler/ExprNodes.py

index 3f0ff191014bb76f7ef731215e7ad0f149b696df..f9e78cd453d5fb123a302dfbae22e0480fdcae67 100644 (file)
@@ -1831,6 +1831,7 @@ class SliceIndexNode(ExprNode):
                 array_length = rhs.type.size
                 self.generate_slice_guard_code(code, array_length)
             else:
+                error("Slice assignments from pointers are not yet supported.")
                 # FIXME: fix the array size according to start/stop
                 array_length = self.base.type.size
             for i in range(array_length):