From eff1951551ecad706e035d410da2302f7e872622 Mon Sep 17 00:00:00 2001 From: fennecdjay Date: Sun, 9 Jun 2019 23:24:52 +0200 Subject: [PATCH] :art: Array type --- src/lib/array.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/lib/array.c b/src/lib/array.c index 3421c361..5ff9e614 100644 --- a/src/lib/array.c +++ b/src/lib/array.c @@ -204,8 +204,7 @@ static FREEARG(freearg_array) { } GWION_IMPORT(array) { - t_array = gwi_mk_type(gwi, "Array", SZ_INT, t_object); - SET_FLAG((t_array), abstract); + t_array = gwi_mk_type(gwi, "@Array", SZ_INT, t_object); CHECK_BB(gwi_class_ini(gwi, t_array, NULL, array_dtor)) CHECK_BB(gwi_item_ini(gwi, "int", "@array")) @@ -224,13 +223,13 @@ GWION_IMPORT(array) { CHECK_BB(gwi_func_end(gwi, 0)) CHECK_BB(gwi_class_end(gwi)) - CHECK_BB(gwi_oper_ini(gwi, "Array", (m_str)OP_ANY_TYPE, NULL)) + CHECK_BB(gwi_oper_ini(gwi, "@Array", (m_str)OP_ANY_TYPE, NULL)) CHECK_BB(gwi_oper_add(gwi, opck_array_at)) CHECK_BB(gwi_oper_end(gwi, op_ref, ObjectAssign)) CHECK_BB(gwi_oper_add(gwi, opck_array_shift)) CHECK_BB(gwi_oper_emi(gwi, opem_array_shift)) CHECK_BB(gwi_oper_end(gwi, op_shl, NULL)) - CHECK_BB(gwi_oper_ini(gwi, "Array", "Array", NULL)) + CHECK_BB(gwi_oper_ini(gwi, "@Array", "Array", NULL)) CHECK_BB(gwi_oper_add(gwi, opck_array_cast)) CHECK_BB(gwi_oper_emi(gwi, opem_basic_cast)) CHECK_BB(gwi_oper_end(gwi, op_cast, NULL)) -- 2.43.0