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

passing expressions as attribute names #7

Open
ostap opened this issue Jul 4, 2013 · 0 comments
Open

passing expressions as attribute names #7

ostap opened this issue Jul 4, 2013 · 0 comments

Comments

@ostap
Copy link
Owner

ostap commented Jul 4, 2013

accessing a field of an object (e.g. obj["field"]) can only be done using string literals (e.g. "field"). this enhancement should enable passing expressions as attribute names, (e.g. "field" ++ N). keep in mind that this change should not impact the performance, in other words obj["field"] should be evaluated at the same speed as it is today. this could be achieved by generating different instructions for the vm.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant