Commits

Carl Friedrich Bolz  committed ab7d175

fix translation

  • Participants
  • Parent commits 5020a08
  • Branches compress-terms2

Comments (0)

Files changed (1)

File prolog/interpreter/shape.py

     def get_storage(self, i):
         raise NotImplementedError("abstract base class")
 
+    def set_storage(self, i, val):
+        raise NotImplementedError("abstract base class")
+
     def size_storage(self):
         raise NotImplementedError("abstract base class")
 
     def get_storage(self, i):
         return self.storage[i]
 
+    def set_storage(self, i, val):
+        self.storage[i] = val
+
     def size_storage(self):
         return len(self.storage)
 
                     old_child.parent = self
                     old_child.index = newi
                 else:
-                    self.storage[newi] = deref
+                    self.set_storage(newi, deref)
             newi += 1
         return self