Comment tweaks

This commit is contained in:
2026-04-12 15:02:07 +10:00
parent c0c03a4110
commit e24823924a
3 changed files with 12 additions and 3 deletions

View File

@@ -801,6 +801,8 @@ static unsigned int writeInstructionVarDeclare(Toy_Bytecode** mb, Toy_AstVarDecl
static unsigned int writeInstructionAssign(Toy_Bytecode** mb, Toy_AstVarAssign ast, bool chainedAssignment) {
unsigned int result = 0;
//TODO: flip the order of target & value, to allow chained assignment AND multiple return values
//target is a variable name
if (ast.target->type == TOY_AST_VALUE && TOY_VALUE_IS_STRING(ast.target->value.value)) {
//name string