some progress

This commit is contained in:
2026-07-03 16:51:04 +10:00
parent ce483dacc2
commit cffcd87c06
2 changed files with 57 additions and 1 deletions

View File

@@ -106,6 +106,11 @@ GroundProgram _GroundProgramPreprocess(GroundProgram* program, GroundState* stat
HASH_ADD_STR(state->variables, name, var);
// Add instruction to attach closure to function
GroundInstruction inst = Ground.New.Instruction(GroundInstruction_FUN);
Ground.Instruction.append(&inst, Ground.New.Arg.FunctionRef(sig->args.at[0].as.ref));
Ground.Program.append(&newProgram, inst);
break;
}
case GroundInstruction_STRUCT: {