diff --git a/README.md b/README.md index 2329498..856b930 100644 --- a/README.md +++ b/README.md @@ -4,7 +4,7 @@ Cosmo is a portable scripting language loosely based off of Lua. Cosmo easily al ``` proto Vector function __init(self) - self.vector = {} + self.vector = [] self.x = 0 end @@ -32,13 +32,12 @@ for (var i = 0; i < 4; i++) do end ``` -> 3 : 0 - -> 2 : 1 - -> 1 : 2 - -> 0 : 3 +``` +3 : 0 +2 : 1 +1 : 2 +0 : 3 +``` # C API The Cosmo C API is currently undocumented, however as soon as development has reached a stable state documentation on full language features and the C API will start. \ No newline at end of file diff --git a/src/ctable.h b/src/ctable.h index 02857e9..7ebe413 100644 --- a/src/ctable.h +++ b/src/ctable.h @@ -1,6 +1,8 @@ #ifndef CTABLE_H #define CTABLE_H +/* TODO: rewrite this table implementation. compared to other languages (including python!) this table is verrryyyy slow */ + #include "cosmo.h" #include "cvalue.h"