We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
sample.go
Basic correctness for an interpreter must allow func to be re-defined. All calls to the func must use the latest version. On go1.23.3 darwin/amd64 yaegi v0.16.1 ~~~ $ go install github.com/traefik/yaegi/cmd/yaegi@latest go: downloading github.com/traefik/yaegi v0.16.1 $ yaegi > func f(a, b int) int { return a + b } // start with addition : 0xc00012f920 > f(2,3) : 5 > func g() int { return f(2,3) } : 0xc00068fa50 > g() : 5 > func f(a, b int) int { return a * b } // <<- new! multiplication! : 0xc000034c00 > g() : 5 > ~~~
2 * 3 is 6, not 5. The func g is still calling the stale definition of func f.
See above.
v0.16.1
No response
The text was updated successfully, but these errors were encountered:
No branches or pull requests
The following program
sample.go
triggers an unexpected resultExpected result
2 * 3 is 6, not 5. The func g is still calling the stale definition of func f.
Got
See above.
Yaegi Version
v0.16.1
Additional Notes
No response
The text was updated successfully, but these errors were encountered: