-Subproject commit 804ab60f541728508f1363a1c0f259173248015e
+Subproject commit c63343d7bf486a47001f32d71b8160bf997ae4d2
const Exp_Unary* unary = (Exp_Unary*)data;
if(exp_self(unary)->next)
ERR_O(exp_self(unary)->pos, _("spork/fork must not have next expression"))
- if(unary->op == insert_symbol("fork") && !unary->fork_ok)
- ERR_O(exp_self(unary)->pos, _("forks must be stored in a value:\n"
- "fork xxx @=> Fork f"))
if(unary->exp && unary->exp->exp_type == ae_exp_call)
return env->gwion->type[unary->op == insert_symbol("spork") ? et_shred : et_fork];
else if(unary->code) {
}
ANN static Type check_exp_binary(const Env env, const Exp_Binary* bin) {
- if(bin->lhs->exp_type == ae_exp_unary && bin->lhs->d.exp_unary.op == insert_symbol("fork") &&
- bin->rhs->exp_type == ae_exp_decl)
- bin->lhs->d.exp_unary.fork_ok = 1;
CHECK_OO(check_exp(env, bin->lhs))
if(bin->rhs->exp_type == ae_exp_decl && bin->rhs->d.exp_decl.type == env->gwion->type[et_auto])
bin->rhs->type = bin->rhs->d.exp_decl.type = bin->lhs->type;