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

can't send POD types without =destroy warning? #62

Open
JorySchossau opened this issue Apr 22, 2024 · 1 comment
Open

can't send POD types without =destroy warning? #62

JorySchossau opened this issue Apr 22, 2024 · 1 comment

Comments

@JorySchossau
Copy link

The compiler currently implicitly suggests I should box all my sends of POD types with objects so I can create null destructors (discard), which feels unnecessary. Isn't it isolated by definition?

var input = newChan[int]()
input.send(1) # isolation.nim(29, 13) Warning: `=destroy`(dest.value) can raise an unlisted exception: Exception [Effect]
@planetis-m
Copy link
Contributor

The compiler currently implicitly suggests I should box all my sends of POD types with objects so I can create null destructors (discard)

I don't think that's what it is. but also I can't reproduce from your code sample.

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

2 participants