some progress
This commit is contained in:
@@ -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: {
|
||||
|
||||
Reference in New Issue
Block a user