lib/c: add doc on `NATIVE` and `native_array`
authorAlexis Laferrière <alexis.laf@xymus.net>
Tue, 2 Dec 2014 21:28:56 +0000 (16:28 -0500)
committerAlexis Laferrière <alexis.laf@xymus.net>
Tue, 2 Dec 2014 21:29:13 +0000 (16:29 -0500)
Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>

lib/c.nit

index 6c50cf8..3732085 100644 (file)
--- a/lib/c.nit
+++ b/lib/c.nit
@@ -23,7 +23,10 @@ intrude import standard::collection::array
 abstract class CArray[E]
        super AbstractArrayRead[E]
 
+       # The corresponding C type
        type NATIVE: NativeCArray
+
+       # Pointer to the real C array
        var native_array: NATIVE is noinit
 
        private init(length: Int) do self._length = length