Changes in object model: separate class objects to store vtable. Also, nicer UTF-8 display of big numbers.

This commit is contained in:
Hisham Muhammad
2012-12-05 15:12:20 +00:00
parent 2a73405cd0
commit 00b324bfc1
64 changed files with 662 additions and 566 deletions

View File

@ -19,16 +19,15 @@ in the source distribution for its full text.
typedef struct Vector_ {
Object **array;
Object_Compare compare;
ObjectClass* type;
int arraySize;
int growthRate;
int items;
char* type;
bool owner;
} Vector;
Vector* Vector_new(char* type, bool owner, int size, Object_Compare compare);
Vector* Vector_new(ObjectClass* type, bool owner, int size);
void Vector_delete(Vector* this);