lib: add `NativeArray::length`
authorJean Privat <jean@pryen.org>
Thu, 17 Apr 2014 02:17:06 +0000 (22:17 -0400)
committerJean Privat <jean@pryen.org>
Thu, 17 Apr 2014 02:17:06 +0000 (22:17 -0400)
commit7fd86cc8f773f6380f1d00bd488ec10a21f08468
tree754328de6d589da168ae1010439dc168774ec735
parent9dc59d0711a4360d18c4d96beea380df6ad7914b
lib: add `NativeArray::length`

Engines should be able to store the allocated size.
Unlike `NativeString` that is a char*, `NativeArray` is a special Nit
opaque structure.

Signed-off-by: Jean Privat <jean@pryen.org>
lib/standard/collection/array.nit