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

self: var T #130

Open
glassesneo opened this issue Mar 5, 2024 · 0 comments
Open

self: var T #130

glassesneo opened this issue Mar 5, 2024 · 0 comments
Assignees
Labels
Status: Available Waiting for working on it Type: Improve Improve features which are working
Milestone

Comments

@glassesneo
Copy link
Owner

class Dollar(distinct int):
  proc `+=`(other: Dollar) {.varType.} =
    self = self + other

is converted to

type Dollar = distinct int
proc `+=`(self: var Dollar, other: Dollar) =
  self = self + other
@glassesneo glassesneo added this to the Release 0.6.0 milestone Mar 5, 2024
@glassesneo glassesneo added the Type: Enhancement Add brand new features label Mar 5, 2024
@glassesneo glassesneo self-assigned this Mar 5, 2024
@glassesneo glassesneo added Type: Improve Improve features which are working Status: Available Waiting for working on it and removed Type: Enhancement Add brand new features labels Jun 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Status: Available Waiting for working on it Type: Improve Improve features which are working
Projects
None yet
Development

No branches or pull requests

1 participant