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

Support Array Element Access #40

Open
miho opened this issue Nov 23, 2014 · 1 comment
Open

Support Array Element Access #40

miho opened this issue Nov 23, 2014 · 1 comment
Milestone

Comments

@miho
Copy link
Member

miho commented Nov 23, 2014

Accessing elements is currently not supported.

int[] array = // ...
int v = array[0]; // causes parse error
@miho miho added this to the 0.5 milestone Nov 23, 2014
miho added a commit that referenced this issue Nov 24, 2014
- array-access-support added (e.g. args[3] )
@miho
Copy link
Member Author

miho commented Nov 24, 2014

support is still not optimal since array-elem-access is done via operator-invocation (which requires a separate window/node).

Sample code:

public class MainArrays {


    public static void main(String[] args) {
        String s;
        s = (args[0]);
        println(s);
    }
}

Screenshots:

vrl-arrays-02

Screenshot

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