lib/c: contructors `from` for native arrays accept `SequenceRead`
authorAlexis Laferrière <alexis.laf@xymus.net>
Sat, 12 Sep 2015 14:00:22 +0000 (10:00 -0400)
committerAlexis Laferrière <alexis.laf@xymus.net>
Sat, 12 Sep 2015 16:36:15 +0000 (12:36 -0400)
Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>

lib/c.nit

index deb6765..a9b04e1 100644 (file)
--- a/lib/c.nit
+++ b/lib/c.nit
@@ -93,8 +93,8 @@ class CIntArray
                super size
        end
 
-       # Build from an `Array[Int]`
-       new from(array: Array[Int])
+       # Create from an `SequenceRead[Int]`
+       new from(array: SequenceRead[Int])
        do
                var carray = new CIntArray(array.length)
                for i in array.length.times do
@@ -129,7 +129,7 @@ class CByteArray
                super size
        end
 
-       # Build from a `SequenceRead[Byte]`
+       # Create from a `SequenceRead[Byte]`
        new from(array: SequenceRead[Byte])
        do
                var carray = new CByteArray(array.length)
@@ -166,8 +166,8 @@ class CNativeStringArray
                super size
        end
 
-       # Build from an `Array[NativeString]`
-       new from(array: Array[NativeString])
+       # Create from an `SequenceRead[NativeString]`
+       new from(array: SequenceRead[NativeString])
        do
                var carray = new CNativeStringArray(array.length)
                for i in array.length.times do