}
ANN static m_bool prim_unpack(const Emitter emit NUSED, const Exp_Primary* primary) {
-// TODO err_msg
- return exp_self(primary)->emit_var ? GW_OK : GW_ERROR;
+ if(exp_self(primary)->meta == ae_meta_var)
+ return GW_OK;
+ ERR_B(exp_self(primary)->pos, _("unused Tuple unpack"))
}
static const _exp_func prim_func[] = {
DECL_OO(const Type, t, = (Type)VPTR(&bin->lhs->type->e->tuple->types, i))
e->d.exp_decl.td->xid->xid = insert_symbol(t->name);
CHECK_BO(traverse_decl(env, &e->d.exp_decl))
+ bin->rhs->meta = ae_meta_var;
}
++i;
} while((e = e->next));
- bin->rhs->emit_var = 1;
return bin->lhs->type;
}
return opck_at_object_tuple(env, data, mut);