From 60f6ebc8d8369721e105d826145af2b8856ac67e Mon Sep 17 00:00:00 2001 From: Marc Vertes Date: Tue, 27 Jan 2026 16:37:02 +0100 Subject: fix: improve multiple define The VM Vassign instruction now takes an argument to indicates the number of assignations to perform on the stack. Definitions with a function returning multiple values now work. There is still some simplifications, and also to apply the same strategy to var declarations with assign. --- parser/decl.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'parser/decl.go') diff --git a/parser/decl.go b/parser/decl.go index 378eb56..0ba0075 100644 --- a/parser/decl.go +++ b/parser/decl.go @@ -358,7 +358,7 @@ func (p *Parser) parseVarLine(in Tokens) (out Tokens, err error) { } out = append(out, newIdent(vars[i], 0)) out = append(out, v...) - out = append(out, newToken(lang.Assign, "", 0)) + out = append(out, newToken(lang.Assign, "", 0, 1)) } return out, err } -- cgit v1.2.3