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

Referring to another member variable #104

Open
glassesneo opened this issue May 4, 2022 · 0 comments
Open

Referring to another member variable #104

glassesneo opened this issue May 4, 2022 · 0 comments
Assignees
Labels
Status: In Progress Currently working on it Type: Improve Improve features which are working

Comments

@glassesneo
Copy link
Owner

glassesneo commented May 4, 2022

class A:
  var a: int
  # referring to member variable `a` with {.initial.}
  var b {.initial.} = self.a

is roughly the same as

class A:
  var a: int
  var b: int
  proc `new`(a) =
    self.a = a
    self.b = self.a
@glassesneo glassesneo added Type: Improve Improve features which are working Status: Available Waiting for working on it labels May 4, 2022
@glassesneo glassesneo added this to the Release 0.5.0 milestone May 4, 2022
@glassesneo glassesneo added this to To do in Todo on features via automation May 4, 2022
@glassesneo glassesneo self-assigned this May 4, 2022
@glassesneo glassesneo changed the title Refer to another member variable Referring to another member variable Jun 27, 2022
@glassesneo glassesneo removed this from To do in Todo on features Jun 28, 2022
@glassesneo glassesneo added Status: In Progress Currently working on it and removed Status: Available Waiting for working on it labels Sep 18, 2022
@glassesneo glassesneo modified the milestones: Release 0.6.0, Release 1.0.0 Oct 7, 2022
@glassesneo glassesneo removed this from the Release 1.0.0 milestone Aug 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Status: In Progress Currently working on it Type: Improve Improve features which are working
Projects
None yet
Development

No branches or pull requests

1 participant