compiler: add a native implementation of NativeArray::memmove
[nit.git] / lib / core / collection / array.nit
index d196333..8747c8b 100644 (file)
@@ -592,7 +592,6 @@ end
 # A set implemented with an Array.
 class ArraySet[E]
        super Set[E]
-       super Cloneable
 
        # The stored elements.
        private var array: Array[E] is noinit
@@ -993,8 +992,7 @@ universal NativeArray[E]
        fun copy_to(dest: NativeArray[E], length: Int) is intern
 
        # Copy `length` items to `dest` starting from `dest`.
-       fun memmove(start: Int, length: Int, dest: NativeArray[E], dest_start: Int) do
-               # TODO native one
+       fun memmove(start: Int, length: Int, dest: NativeArray[E], dest_start: Int) is intern do
                if start < dest_start then
                        var i = length
                        while i > 0 do