]> Nishi Git Mirror - gwion.git/commitdiff
:art: rename @ctor op to call_type
authorfennecdjay <fennecdjay@gmail.com>
Mon, 30 Jan 2023 18:31:04 +0000 (19:31 +0100)
committerfennecdjay <fennecdjay@gmail.com>
Mon, 30 Jan 2023 18:31:04 +0000 (19:31 +0100)
src/emit/emit.c
src/lib/lib_class.c
src/parse/check.c

index bc67142a010d98028b8877f7ac474ff38e5e7dfc..30b300d3427fc75df9c0737876b5edc60ae1d109 100644 (file)
@@ -1335,7 +1335,7 @@ ANN static m_bool _emit_exp_call(const Emitter emit, const Exp_Call *call) {
 
   if(unlikely(!is_func(emit->gwion, t))) {
     const Type t = actual_type(emit->gwion, call->func->type);
-    struct Op_Import opi = {.op   = insert_symbol("@ctor"),
+    struct Op_Import opi = {.op   = insert_symbol("call_type"),
                             .rhs  = t,
                             .data = (uintptr_t)call,
                             .pos  = exp_self(call)->pos};
index 2def08a051415a2a2aeb2d68bda5c7f83ddce568..69b1115717a4c298ff73138abe963914c6c3ca9e 100644 (file)
@@ -71,7 +71,7 @@ GWION_IMPORT(class) {
   gwidoc(gwi, "internal constructor operator.");
   GWI_BB(gwi_oper_ini(gwi, NULL, (m_str)OP_ANY_TYPE, NULL))
   GWI_BB(gwi_oper_add(gwi, opck_basic_ctor))
-  GWI_BB(gwi_oper_end(gwi, "@ctor", NULL))
+  GWI_BB(gwi_oper_end(gwi, "call_type", NULL))
 /*
   gwidoc(gwi, "Allow enum for array size");
   GWI_BB(gwi_oper_ini(gwi, "Class", "int", NULL))
index f44f046817acceee5020b6c1fd830e79957284b2..66ea0cfa3bd7b614ffa9d25368b62a19865af0e6 100644 (file)
@@ -946,7 +946,7 @@ ANN Type call_type(const Env env, Exp_Call *const exp) {
     const Value v = nspc_lookup_value0(t->info->base_type->nspc, insert_symbol("new"));
     if(v) return exp->func->type = v->type;
   }
-  struct Op_Import opi = {.op   = insert_symbol("@ctor"),
+  struct Op_Import opi = {.op   = insert_symbol("call_type"),
                           .rhs  = actual_type(env->gwion, exp->func->type),
                           .data = (uintptr_t)exp,
                           .pos  = exp_self(exp)->pos};