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 nested property-access #573

Closed
steffengy opened this issue Oct 12, 2014 · 4 comments
Closed

Support nested property-access #573

steffengy opened this issue Oct 12, 2014 · 4 comments
Labels
nfr New Feature Request

Comments

@steffengy
Copy link
Contributor

namespace Debug;
class ZephirDebug
{
    public arr;

    public static function test()
    {
        let this->arr = new ZephirDebug();
        let this->arr->arr = 1;
    }
}

results in

Zephir\ParseException: Syntax error in /media/rdata/projects/XXX/zephir_debug/debug/zephirdebug.zep on line 9

                let this->arr->arr = 1;
        ----------------------^

Which is probably not expected behavior?

Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.

@nkt nkt changed the title LetStatement: Nested/Multi level property access results in SyntaxError Support nested property-access Oct 12, 2014
@nkt nkt added nfr New Feature Request parser labels Oct 12, 2014
@aschwin
Copy link

aschwin commented Jan 26, 2016

What is the status of this? It is not closed yet, but is someone still working on this?

@sergeyklay
Copy link
Contributor

+1

@steffengy
Copy link
Contributor Author

I do not think anyone wouldn't want this feature but it's unfortunately
anything but easy to implement and would either consume very much time
or cause a very big performance degradation.
It's also not foreseeable at this point, when someone will have time for it, unfortunately.

@sergeyklay
Copy link
Contributor

This issue was moved to zephir-lang/php-zephir-parser#16

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

No branches or pull requests

4 participants