Skip to content
New issue

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

fix ref counting #66

Open
nbittich opened this issue Aug 31, 2024 · 0 comments
Open

fix ref counting #66

nbittich opened this issue Aug 31, 2024 · 0 comments

Comments

@nbittich
Copy link
Owner

nbittich commented Aug 31, 2024

this should work:

store = struct  {todos: [struct {value:"do some work"}]}


for t in &store{
    println(t)
}

this also should work:

store = struct  {todos: [struct {value:"do some work"}]}


for t in &store{
     t.checked=true
}

this too:

store = struct  {todos: [struct {value:"do some work"}]}
x = &store

for t in x{
     t.checked=true
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant