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

Class variables #105

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

Class variables #105

glassesneo opened this issue May 5, 2022 · 0 comments
Assignees
Labels
Status: Available Waiting for working on it Type: Enhancement Add brand new features
Milestone

Comments

@glassesneo
Copy link
Owner

glassesneo commented May 5, 2022

class A:
  var classVal {.classVal.}: int

This will be converted below:

type A = ref object
var ClassAclassVal: int
template classVal(T: typedesc[A]): untyped = `Class T classVal`
@glassesneo glassesneo added Type: Enhancement Add brand new features Status: Available Waiting for working on it labels May 5, 2022
@glassesneo glassesneo added this to the Release 0.5.0 milestone May 5, 2022
@glassesneo glassesneo self-assigned this May 5, 2022
@glassesneo glassesneo added this to To do in Todo on features via automation May 5, 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 Status: Available Waiting for working on it and removed Status: Available Waiting for working on it Status: In Progress Currently working on it labels Sep 24, 2022
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: Enhancement Add brand new features
Projects
None yet
Development

No branches or pull requests

1 participant