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

Add option to change name when using @:forward #34

Open
gene-pavlovsky opened this issue Dec 12, 2019 · 0 comments
Open

Add option to change name when using @:forward #34

gene-pavlovsky opened this issue Dec 12, 2019 · 0 comments

Comments

@gene-pavlovsky
Copy link
Member

It would be nice if it was possible to specify a custom name when using @:forward.
Sometimes, a name might conflict with an existing one. Sometimes, it can be for reason of readability.
I'm also thinking sometimes it would be useful to be able to declare a forwarded field as private.
One option for syntax

@:forward(
  length,
  getItem = get,
  private setItem = set
) var c:Container;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant