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

public / private / protected fields #496

Open
arakov opened this issue Mar 6, 2020 · 0 comments
Open

public / private / protected fields #496

arakov opened this issue Mar 6, 2020 · 0 comments
Assignees
Labels
Feature request New language feature
Milestone

Comments

@arakov
Copy link
Member

arakov commented Mar 6, 2020

Should it be possible to declare a public / internal / protected field. Non-private field will automatically generate a property. The following code:

 A
 {
        x;

        x
        {
              get() = x;

              set(v)
              {
                   x := v
              }
        } 
 }

will be simplified using public field:

 A
 {
        public x;
 }    
@arakov arakov added the Feature request New language feature label Mar 6, 2020
@arakov arakov added this to the ELENA 6.0 milestone Jul 15, 2020
@arakov arakov changed the title public / internal / protected fields public / private / protected fields Aug 19, 2024
@arakov arakov self-assigned this Aug 19, 2024
arakov added a commit that referenced this issue Aug 21, 2024
arakov added a commit that referenced this issue Aug 21, 2024
@arakov arakov mentioned this issue Aug 22, 2024
3 tasks
arakov added a commit that referenced this issue Aug 22, 2024
* #658 : creating dpa
* [FIXED] "__typeof self" expression inside the nested class / closure
* [REDUX] iterator method
* #496 : adding support the private fields
@arakov arakov mentioned this issue Aug 22, 2024
3 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature request New language feature
Projects
None yet
Development

No branches or pull requests

1 participant