Skip to content

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

Description

@JorySchossau

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]

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions