Added simple variable lifetimes
This commit is contained in:
@ -14,5 +14,6 @@ func (f *Function) CompileAssignment(expr *expression.Expression) error {
|
||||
return errors.New(&errors.UnknownIdentifier{Name: name}, f.File, expr.Children[0].Token.Position)
|
||||
}
|
||||
|
||||
defer f.useVariable(variable)
|
||||
return f.Execute(expr.Token, variable.Register, expr.Children[1])
|
||||
}
|
||||
|
Reference in New Issue
Block a user