c & matrix: make some services public for low level clients
authorAlexis Laferrière <alexis.laf@xymus.net>
Fri, 17 Mar 2017 01:40:48 +0000 (21:40 -0400)
committerAlexis Laferrière <alexis.laf@xymus.net>
Thu, 23 Mar 2017 21:17:55 +0000 (17:17 -0400)
Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>

lib/c.nit
lib/matrix/matrix.nit

index 55a89a0..7db5945 100644 (file)
--- a/lib/c.nit
+++ b/lib/c.nit
@@ -30,7 +30,7 @@ abstract class CArray[E]
        # Pointer to the real C array
        var native_array: NATIVE is noinit
 
-       private init(length: Int) is old_style_init do self._length = length
+       init(length: Int) is old_style_init do self._length = length
 
        redef fun [](index)
        do
index 73131ca..91adb80 100644 (file)
@@ -28,7 +28,7 @@ class Matrix
        var height: Int
 
        # Items of this matrix, rows by rows
-       private var items: Array[Float] is lazy do
+       var items: Array[Float] is lazy do
                return new Array[Float].filled_with(0.0, width*height)
        end