wrote some incomplete code to support native method definition - method(#native) ...

This commit is contained in:
hyunghwan.chung
2017-02-18 15:00:45 +00:00
parent 607e6c8502
commit 93e776a9d8
6 changed files with 92 additions and 27 deletions

View File

@ -446,7 +446,7 @@ struct moo_set_t
moo_oop_oop_t bucket; /* Array */
};
#define MOO_CLASS_NAMED_INSTVARS 13
#define MOO_CLASS_NAMED_INSTVARS 14
typedef struct moo_class_t moo_class_t;
typedef struct moo_class_t* moo_oop_class_t;
struct moo_class_t
@ -460,6 +460,7 @@ struct moo_class_t
moo_oop_t subclasses; /* Array of subclasses */
moo_oop_char_t name; /* Symbol */
moo_oop_t modname; /* Symbol if importing a module. nil if not. */
/* == NEVER CHANGE THIS ORDER OF 3 ITEMS BELOW == */
moo_oop_char_t instvars; /* String */