start working on runtime oop

This commit is contained in:
William Bell
2025-08-02 20:17:24 +01:00
parent 8ea69cce67
commit a7d7ded803
19 changed files with 142 additions and 71 deletions

View File

@@ -29,8 +29,9 @@ ArgonObject *init_argon_class(char *name) {
ArgonObject *object = ar_alloc(sizeof(ArgonObject));
object->name = name;
object->type = TYPE_OBJECT;
object->self = NULL;
object->baseObject = ARGON_TYPE;
object->self = object;
object->classObject = ;
object->baseObject = BASE_CLASS;
object->fields = createHashmap_GC();
memset(&object->value, 0, sizeof(object->value));
return object;