new built-in variables for each type

This commit is contained in:
cozis
2022-08-14 13:04:53 +02:00
parent d24877c5f3
commit bc516f470a
26 changed files with 300 additions and 36 deletions
+5
View File
@@ -99,6 +99,11 @@ static Object *copy(Object *self, Heap *heap, Error *err)
return (Object*) ls2;
}
TypeObject *Object_GetListType()
{
return &t_list;
}
Object *Object_NewList(int capacity, Heap *heap, Error *error)
{
// Handle default args.